GUI: Fix some types

This commit is contained in:
Jeffrey Pfau 2015-08-26 20:11:51 -07:00
parent af24a98de4
commit 797441c379
6 changed files with 7 additions and 7 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -25,8 +25,8 @@ enum GUIInput {
};
struct GUIParams {
int width;
int height;
unsigned width;
unsigned height;
const struct GUIFont* font;
void (*drawStart)(void);

View File

@ -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;

View File

@ -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, ...);