mirror of https://github.com/mgba-emu/mgba.git
GUI: Fix some types
This commit is contained in:
parent
af24a98de4
commit
797441c379
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -25,8 +25,8 @@ enum GUIInput {
|
|||
};
|
||||
|
||||
struct GUIParams {
|
||||
int width;
|
||||
int height;
|
||||
unsigned width;
|
||||
unsigned height;
|
||||
const struct GUIFont* font;
|
||||
|
||||
void (*drawStart)(void);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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, ...);
|
||||
|
||||
|
|
Loading…
Reference in New Issue