Cosmetic changes on UI and icons.
[clinton/Virtual-Jaguar-Rx.git] / src / debugger / heapallocatorbrowser.cpp
index 83ed9c7..fb1308b 100644 (file)
@@ -169,11 +169,30 @@ void HeapAllocatorBrowserWindow::RefreshContents(void)
 }\r
 \r
 \r
-#if 0\r
+// \r
+void HeapAllocatorBrowserWindow::Reset(void)\r
+{\r
+       size_t Adr68K;\r
+\r
+       if (DBGManager_GetAdrFromSymbolName((char *)"__HeapBase"))\r
+       {\r
+               if (Adr68K = DBGManager_GetGlobalVariableAdrFromName((char *)"alloc"))\r
+               {\r
+                       jaguarMainRAM[Adr68K] = jaguarMainRAM[Adr68K + 1] = jaguarMainRAM[Adr68K + 2] = jaguarMainRAM[Adr68K + 3] = 0;\r
+                       Adr = 0;\r
+               }\r
+       }\r
+}\r
+\r
+\r
+// \r
 void HeapAllocatorBrowserWindow::keyPressEvent(QKeyEvent * e)\r
 {\r
        if (e->key() == Qt::Key_Escape)\r
+       {\r
                hide();\r
+       }\r
+#if 0\r
        else if (e->key() == Qt::Key_PageUp)\r
        {\r
                memBase -= 480;\r
@@ -210,8 +229,8 @@ void HeapAllocatorBrowserWindow::keyPressEvent(QKeyEvent * e)
 \r
                RefreshContents();\r
        }\r
-}\r
 #endif\r
+}\r
 \r
 \r
 #if 0\r