mirror of https://github.com/PCSX2/pcsx2.git
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.
This commit is contained in:
parent
30e5731f14
commit
77e630b78a
|
@ -76,7 +76,6 @@ CtrlRegisterList::CtrlRegisterList(wxWindow* parent, DebugInterface* _cpu)
|
||||||
}
|
}
|
||||||
|
|
||||||
SetDoubleBuffered(true);
|
SetDoubleBuffered(true);
|
||||||
SetInitialSize(ClientToWindowSize(GetMinClientSize()));
|
|
||||||
|
|
||||||
const wxSize actualSize = getOptimalSize();
|
const wxSize actualSize = getOptimalSize();
|
||||||
SetVirtualSize(actualSize);
|
SetVirtualSize(actualSize);
|
||||||
|
@ -467,34 +466,29 @@ void CtrlRegisterList::onPopupClick(wxCommandEvent& evt)
|
||||||
case ID_REGISTERLIST_DISPLAY32:
|
case ID_REGISTERLIST_DISPLAY32:
|
||||||
resolvePointerStrings = false;
|
resolvePointerStrings = false;
|
||||||
maxBits = 32;
|
maxBits = 32;
|
||||||
SetInitialSize(ClientToWindowSize(GetMinClientSize()));
|
|
||||||
postEvent(debEVT_UPDATELAYOUT, 0);
|
postEvent(debEVT_UPDATELAYOUT, 0);
|
||||||
Refresh();
|
Refresh();
|
||||||
break;
|
break;
|
||||||
case ID_REGISTERLIST_DISPLAY64:
|
case ID_REGISTERLIST_DISPLAY64:
|
||||||
resolvePointerStrings = false;
|
resolvePointerStrings = false;
|
||||||
maxBits = 64;
|
maxBits = 64;
|
||||||
SetInitialSize(ClientToWindowSize(GetMinClientSize()));
|
|
||||||
postEvent(debEVT_UPDATELAYOUT, 0);
|
postEvent(debEVT_UPDATELAYOUT, 0);
|
||||||
Refresh();
|
Refresh();
|
||||||
break;
|
break;
|
||||||
case ID_REGISTERLIST_DISPLAY128:
|
case ID_REGISTERLIST_DISPLAY128:
|
||||||
resolvePointerStrings = false;
|
resolvePointerStrings = false;
|
||||||
maxBits = 128;
|
maxBits = 128;
|
||||||
SetInitialSize(ClientToWindowSize(GetMinClientSize()));
|
|
||||||
postEvent(debEVT_UPDATELAYOUT, 0);
|
postEvent(debEVT_UPDATELAYOUT, 0);
|
||||||
Refresh();
|
Refresh();
|
||||||
break;
|
break;
|
||||||
case ID_REGISTERLIST_DISPLAY128STRINGS:
|
case ID_REGISTERLIST_DISPLAY128STRINGS:
|
||||||
resolvePointerStrings = true;
|
resolvePointerStrings = true;
|
||||||
maxBits = 128;
|
maxBits = 128;
|
||||||
SetInitialSize(ClientToWindowSize(GetMinClientSize()));
|
|
||||||
postEvent(debEVT_UPDATELAYOUT, 0);
|
postEvent(debEVT_UPDATELAYOUT, 0);
|
||||||
Refresh();
|
Refresh();
|
||||||
break;
|
break;
|
||||||
case ID_REGISTERLIST_DISPLAYVU0FFLOATS:
|
case ID_REGISTERLIST_DISPLAYVU0FFLOATS:
|
||||||
displayVU0FAsFloat = !displayVU0FAsFloat;
|
displayVU0FAsFloat = !displayVU0FAsFloat;
|
||||||
SetInitialSize(ClientToWindowSize(GetMinClientSize()));
|
|
||||||
postEvent(debEVT_UPDATELAYOUT, 0);
|
postEvent(debEVT_UPDATELAYOUT, 0);
|
||||||
Refresh();
|
Refresh();
|
||||||
break;
|
break;
|
||||||
|
@ -645,12 +639,6 @@ void CtrlRegisterList::mouseEvent(wxMouseEvent& evt)
|
||||||
if (cat != category)
|
if (cat != category)
|
||||||
{
|
{
|
||||||
category = cat;
|
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();
|
Refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue