all repos — mgba @ 8ffcb116f2f65fbf09122d7568e59ad61fa5bfc3

mGBA Game Boy Advance Emulator

GUI: Minor fixes
Jeffrey Pfau jeffrey@endrift.com
Sat, 19 Sep 2015 19:41:43 -0700
commit

8ffcb116f2f65fbf09122d7568e59ad61fa5bfc3

parent

336993497dbf1bd02202b2100da5d724bcfaea02

2 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/util/gui/file-select.csrc/util/gui/file-select.c

@@ -73,8 +73,8 @@ params->drawStart();

if (params->guiPrepare) { params->guiPrepare(); } - GUIFontPrintf(params->font, 0, GUIFontHeight(params->font), GUI_TEXT_LEFT, 0xFFFFFFFF, "%s", currentPath); - GUIFontPrintf(params->font, 0, GUIFontHeight(params->font) * 2, GUI_TEXT_LEFT, 0xFFFFFFFF, "(scanning for items: %zu)", i); + GUIFontPrintf(params->font, 0, GUIFontHeight(params->font), GUI_TEXT_LEFT, 0xFFFFFFFF, "(scanning for items: %zu)", i); + GUIFontPrintf(params->font, 0, GUIFontHeight(params->font) * 2, GUI_TEXT_LEFT, 0xFFFFFFFF, "%s", currentPath); if (params->guiFinish) { params->guiFinish(); }
M src/util/gui/menu.csrc/util/gui/menu.c

@@ -184,7 +184,7 @@ }

int state = params->batteryState(); uint32_t color = 0xFF000000; if (state == (BATTERY_CHARGING | BATTERY_FULL)) { - color |= 0x2020FF; + color |= 0xFF2020; } else if (state & BATTERY_CHARGING) { color |= 0x20FF20; } else if (state >= BATTERY_HALF) {

@@ -192,7 +192,7 @@ color |= 0xFFFFFF;

} else if (state == BATTERY_LOW) { color |= 0x20FFFF; } else { - color |= 0xFF2020; + color |= 0x2020FF; } const char* batteryText;