Skip to content

Commit

Permalink
[Painter] Use correct type for fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Aug 2, 2024
1 parent c57c466 commit eb09fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions users/drashna/display/painter/ili9341_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static painter_image_handle_t mouse_icon;
* @param font font being used
* @return char* truncated text
*/
char* truncate_text(const char* text, uint16_t max_width, const font_t* font) {
char* truncate_text(const char* text, uint16_t max_width, painter_font_handle_t font) {
static char truncated_text[256];
strncpy(truncated_text, text, sizeof(truncated_text) - 1);
truncated_text[sizeof(truncated_text) - 1] = '\0';
Expand Down Expand Up @@ -69,7 +69,7 @@ char* truncate_text(const char* text, uint16_t max_width, const font_t* font) {
* @param font
* @return char*
*/
char* truncate_text_from_start(const char* text, uint16_t max_width, const font_t* font) {
char* truncate_text_from_start(const char* text, uint16_t max_width, painter_font_handle_t font) {
static char truncated_text[256];
strncpy(truncated_text, text, sizeof(truncated_text) - 1);
truncated_text[sizeof(truncated_text) - 1] = '\0';
Expand Down

0 comments on commit eb09fa5

Please sign in to comment.