mirror of https://github.com/mgba-emu/mgba.git
GUI: Minor fixes
This commit is contained in:
parent
336993497d
commit
8ffcb116f2
|
@ -73,8 +73,8 @@ static bool _refreshDirectory(struct GUIParams* params, const char* currentPath,
|
|||
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();
|
||||
}
|
||||
|
|
|
@ -184,7 +184,7 @@ void GUIDrawBattery(struct GUIParams* params) {
|
|||
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 @@ void GUIDrawBattery(struct GUIParams* params) {
|
|||
} else if (state == BATTERY_LOW) {
|
||||
color |= 0x20FFFF;
|
||||
} else {
|
||||
color |= 0xFF2020;
|
||||
color |= 0x2020FF;
|
||||
}
|
||||
|
||||
const char* batteryText;
|
||||
|
|
Loading…
Reference in New Issue