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:
parent
9495bf30bf
commit
ab2ddbc2ee
@ -316,6 +316,9 @@ static void ProcessListMenu_MemoryViewer(const ProcessInfo *info)
|
|||||||
|
|
||||||
menus[MENU_MODE_NORMAL].starti = scroll;
|
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();
|
clearMenu();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user