reset scrolling when changing modes to avoid problems when the sizes dont match

This commit is contained in:
LiquidFenrir 2017-11-03 02:15:28 +01:00
parent 76dde0e6db
commit a5e18c82d1

View File

@ -183,11 +183,13 @@ static void ProcessListMenu_MemoryViewer(const ProcessInfo *info)
// Viewing
void viewHeap(void)
{
menus[MENU_MODE_NORMAL].selected = 0;
menus[MENU_MODE_NORMAL].buf = (u8*)heapDestAddress;
menus[MENU_MODE_NORMAL].max = heapTotalSize;
}
void viewCode(void)
{
menus[MENU_MODE_NORMAL].selected = 0;
menus[MENU_MODE_NORMAL].buf = (u8*)codeDestAddress;
menus[MENU_MODE_NORMAL].max = codeTotalSize;
}