From 91378ef3c1523372e2559527bb0b49e106e6303a Mon Sep 17 00:00:00 2001 From: TuxSH Date: Sun, 25 Jun 2017 00:14:07 +0200 Subject: [PATCH] Fix menu display bugs --- sysmodules/rosalina/source/menu.c | 2 ++ sysmodules/rosalina/source/menus/miscellaneous.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sysmodules/rosalina/source/menu.c b/sysmodules/rosalina/source/menu.c index ce3e4df..c320b77 100644 --- a/sysmodules/rosalina/source/menu.c +++ b/sysmodules/rosalina/source/menu.c @@ -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_DrawFormattedString(SCREEN_BOT_WIDTH - 10 - 4 * SPACING_X, SCREEN_BOT_HEIGHT - 20, COLOR_WHITE, " "); + if(batteryLevel != 255) Draw_DrawFormattedString(SCREEN_BOT_WIDTH - 10 - 4 * SPACING_X, SCREEN_BOT_HEIGHT - 20, COLOR_WHITE, "%02hhu%%", batteryLevel); else diff --git a/sysmodules/rosalina/source/menus/miscellaneous.c b/sysmodules/rosalina/source/menus/miscellaneous.c index 56a0446..7073382 100644 --- a/sysmodules/rosalina/source/menus/miscellaneous.c +++ b/sysmodules/rosalina/source/menus/miscellaneous.c @@ -255,7 +255,7 @@ void MiscellaneousMenu_InputRedirection(void) if(res != 0) sprintf(buf, "Failed to stop InputRedirection (0x%08x).", (u32)res); else - miscellaneousMenu.items[2].title = "Start InputRedirection"; + miscellaneousMenu.items[3].title = "Start InputRedirection"; } else { @@ -311,7 +311,7 @@ void MiscellaneousMenu_InputRedirection(void) if(res != 0) sprintf(buf, "Starting InputRedirection... failed (0x%08x).", (u32)res); else - miscellaneousMenu.items[2].title = "Stop InputRedirection"; + miscellaneousMenu.items[3].title = "Stop InputRedirection"; done = true; }