fix visible blank

if jumping too close to the end, the cursor won't be at the top to avoid the blank
This commit is contained in:
LiquidFenrir 2017-11-05 06:48:56 +01:00
parent 9495bf30bf
commit ab2ddbc2ee

View File

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