Fix menu display bugs

This commit is contained in:
TuxSH 2017-06-25 00:14:07 +02:00
parent 0377cbd2b4
commit 91378ef3c1
2 changed files with 4 additions and 2 deletions

View File

@ -251,6 +251,8 @@ static void menuDraw(Menu *menu, u32 selected)
Draw_DrawString(SCREEN_BOT_WIDTH - 10 - SPACING_X * n, 10, COLOR_WHITE, ipBuffer); Draw_DrawString(SCREEN_BOT_WIDTH - 10 - SPACING_X * n, 10, COLOR_WHITE, ipBuffer);
} }
Draw_DrawFormattedString(SCREEN_BOT_WIDTH - 10 - 4 * SPACING_X, SCREEN_BOT_HEIGHT - 20, COLOR_WHITE, " ");
if(batteryLevel != 255) if(batteryLevel != 255)
Draw_DrawFormattedString(SCREEN_BOT_WIDTH - 10 - 4 * SPACING_X, SCREEN_BOT_HEIGHT - 20, COLOR_WHITE, "%02hhu%%", batteryLevel); Draw_DrawFormattedString(SCREEN_BOT_WIDTH - 10 - 4 * SPACING_X, SCREEN_BOT_HEIGHT - 20, COLOR_WHITE, "%02hhu%%", batteryLevel);
else else

View File

@ -255,7 +255,7 @@ void MiscellaneousMenu_InputRedirection(void)
if(res != 0) if(res != 0)
sprintf(buf, "Failed to stop InputRedirection (0x%08x).", (u32)res); sprintf(buf, "Failed to stop InputRedirection (0x%08x).", (u32)res);
else else
miscellaneousMenu.items[2].title = "Start InputRedirection"; miscellaneousMenu.items[3].title = "Start InputRedirection";
} }
else else
{ {
@ -311,7 +311,7 @@ void MiscellaneousMenu_InputRedirection(void)
if(res != 0) if(res != 0)
sprintf(buf, "Starting InputRedirection... failed (0x%08x).", (u32)res); sprintf(buf, "Starting InputRedirection... failed (0x%08x).", (u32)res);
else else
miscellaneousMenu.items[2].title = "Stop InputRedirection"; miscellaneousMenu.items[3].title = "Stop InputRedirection";
done = true; done = true;
} }