From ab2ddbc2eed77f94daf2ea6bcdef3f9439e1c99f Mon Sep 17 00:00:00 2001 From: LiquidFenrir Date: Sun, 5 Nov 2017 06:48:56 +0100 Subject: [PATCH] fix visible blank if jumping too close to the end, the cursor won't be at the top to avoid the blank --- sysmodules/rosalina/source/menus/process_list.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysmodules/rosalina/source/menus/process_list.c b/sysmodules/rosalina/source/menus/process_list.c index 8dac268..736fd51 100644 --- a/sysmodules/rosalina/source/menus/process_list.c +++ b/sysmodules/rosalina/source/menus/process_list.c @@ -316,6 +316,9 @@ static void ProcessListMenu_MemoryViewer(const ProcessInfo *info) menus[MENU_MODE_NORMAL].starti = scroll; } + + if (menus[MENU_MODE_NORMAL].starti > (totalRows - ROWS_PER_SCREEN)) + menus[MENU_MODE_NORMAL].starti = totalRows - ROWS_PER_SCREEN; } clearMenu();