GUI: Minor fixes

This commit is contained in:
Jeffrey Pfau 2015-09-19 19:41:43 -07:00
parent 336993497d
commit 8ffcb116f2
2 changed files with 4 additions and 4 deletions

View File

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

View File

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