From 77e630b78a246ba302bd3b15b0dac4f816d14382 Mon Sep 17 00:00:00 2001 From: Ty Lamontagne Date: Sun, 15 Aug 2021 12:23:34 -0400 Subject: [PATCH] Debugger: Don't resize register view anymore Possible workaround for broken wx or gtk or wm implementations where setting an initial size of the current size breaks the register view. --- pcsx2/gui/Debugger/CtrlRegisterList.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pcsx2/gui/Debugger/CtrlRegisterList.cpp b/pcsx2/gui/Debugger/CtrlRegisterList.cpp index b1b09c3a07..c4f4d2ca76 100644 --- a/pcsx2/gui/Debugger/CtrlRegisterList.cpp +++ b/pcsx2/gui/Debugger/CtrlRegisterList.cpp @@ -76,7 +76,6 @@ CtrlRegisterList::CtrlRegisterList(wxWindow* parent, DebugInterface* _cpu) } SetDoubleBuffered(true); - SetInitialSize(ClientToWindowSize(GetMinClientSize())); const wxSize actualSize = getOptimalSize(); SetVirtualSize(actualSize); @@ -467,34 +466,29 @@ void CtrlRegisterList::onPopupClick(wxCommandEvent& evt) case ID_REGISTERLIST_DISPLAY32: resolvePointerStrings = false; maxBits = 32; - SetInitialSize(ClientToWindowSize(GetMinClientSize())); postEvent(debEVT_UPDATELAYOUT, 0); Refresh(); break; case ID_REGISTERLIST_DISPLAY64: resolvePointerStrings = false; maxBits = 64; - SetInitialSize(ClientToWindowSize(GetMinClientSize())); postEvent(debEVT_UPDATELAYOUT, 0); Refresh(); break; case ID_REGISTERLIST_DISPLAY128: resolvePointerStrings = false; maxBits = 128; - SetInitialSize(ClientToWindowSize(GetMinClientSize())); postEvent(debEVT_UPDATELAYOUT, 0); Refresh(); break; case ID_REGISTERLIST_DISPLAY128STRINGS: resolvePointerStrings = true; maxBits = 128; - SetInitialSize(ClientToWindowSize(GetMinClientSize())); postEvent(debEVT_UPDATELAYOUT, 0); Refresh(); break; case ID_REGISTERLIST_DISPLAYVU0FFLOATS: displayVU0FAsFloat = !displayVU0FAsFloat; - SetInitialSize(ClientToWindowSize(GetMinClientSize())); postEvent(debEVT_UPDATELAYOUT, 0); Refresh(); break; @@ -645,12 +639,6 @@ void CtrlRegisterList::mouseEvent(wxMouseEvent& evt) if (cat != category) { category = cat; - - // Requires the next two lines to check if we are rendering the vu0f category - // and if we need to make the window sized for 128 bits because we are displaying as float - SetInitialSize(ClientToWindowSize(GetMinClientSize())); - postEvent(debEVT_UPDATELAYOUT, 0); - Refresh(); } }