diff --git a/src/platform/3ds/gui-font.c b/src/platform/3ds/gui-font.c index bd241cb92..3b20b5304 100644 --- a/src/platform/3ds/gui-font.c +++ b/src/platform/3ds/gui-font.c @@ -35,7 +35,7 @@ void GUIFontDestroy(struct GUIFont* font) { free(font); } -int GUIFontHeight(const struct GUIFont* font) { +unsigned GUIFontHeight(const struct GUIFont* font) { UNUSED(font); return GLYPH_HEIGHT; } diff --git a/src/platform/psp2/gui-font.c b/src/platform/psp2/gui-font.c index 919b062dc..2a916bb3d 100644 --- a/src/platform/psp2/gui-font.c +++ b/src/platform/psp2/gui-font.c @@ -31,7 +31,7 @@ void GUIFontDestroy(struct GUIFont* font) { free(font); } -int GUIFontHeight(const struct GUIFont* font) { +unsigned GUIFontHeight(const struct GUIFont* font) { UNUSED(font); return GLYPH_HEIGHT; } diff --git a/src/platform/wii/gui-font.c b/src/platform/wii/gui-font.c index 57129a5da..51ab7aeda 100644 --- a/src/platform/wii/gui-font.c +++ b/src/platform/wii/gui-font.c @@ -39,7 +39,7 @@ void GUIFontDestroy(struct GUIFont* font) { free(font); } -int GUIFontHeight(const struct GUIFont* font) { +unsigned GUIFontHeight(const struct GUIFont* font) { UNUSED(font); return GLYPH_HEIGHT; } diff --git a/src/util/gui.h b/src/util/gui.h index f2d267655..a77b71d9e 100644 --- a/src/util/gui.h +++ b/src/util/gui.h @@ -25,8 +25,8 @@ enum GUIInput { }; struct GUIParams { - int width; - int height; + unsigned width; + unsigned height; const struct GUIFont* font; void (*drawStart)(void); diff --git a/src/util/gui/file-select.c b/src/util/gui/file-select.c index b81b27ec3..66b031e5d 100644 --- a/src/util/gui/file-select.c +++ b/src/util/gui/file-select.c @@ -168,7 +168,7 @@ bool selectFile(const struct GUIParams* params, const char* basePath, char* outP } params->drawStart(); - int y = GUIFontHeight(params->font); + unsigned y = GUIFontHeight(params->font); GUIFontPrintf(params->font, 0, y, GUI_TEXT_LEFT, 0xFFFFFFFF, "%s", currentPath); y += 2 * GUIFontHeight(params->font); size_t i; diff --git a/src/util/gui/font.h b/src/util/gui/font.h index 3679687fe..ed666fcfa 100644 --- a/src/util/gui/font.h +++ b/src/util/gui/font.h @@ -29,7 +29,7 @@ struct GUIFontGlyphMetric { } padding; }; -int GUIFontHeight(const struct GUIFont*); +unsigned GUIFontHeight(const struct GUIFont*); void GUIFontPrintf(const struct GUIFont*, int x, int y, enum GUITextAlignment, uint32_t color, const char* text, ...);