From 4ccb922d1ab10b95f7ee391f2bcd2bedacaecdec Mon Sep 17 00:00:00 2001 From: Ty Lamontagne Date: Fri, 21 Jan 2022 19:04:04 -0500 Subject: [PATCH] Debugger: Make memory search size depend on platform --- pcsx2/gui/Debugger/DisassemblyDialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcsx2/gui/Debugger/DisassemblyDialog.cpp b/pcsx2/gui/Debugger/DisassemblyDialog.cpp index 876a7993c7..f3fef82d98 100644 --- a/pcsx2/gui/Debugger/DisassemblyDialog.cpp +++ b/pcsx2/gui/Debugger/DisassemblyDialog.cpp @@ -115,8 +115,11 @@ CpuTabPage::CpuTabPage(wxWindow* parent, DebugInterface* _cpu) wxBoxSizer *memorySizer = new wxBoxSizer(wxHORIZONTAL); memorySizer->Add(memory, 1, wxEXPAND); - +#ifdef _WIN32 memorySearch->SetMaxSize(wxSize(310 * MSW_GetDPIScale(), -1)); +#else + memorySearch->SetMaxSize(wxSize(330, -1)); +#endif memorySizer->Add(memorySearch, 1, wxEXPAND); memoryPanel->SetSizer(memorySizer); memoryPanel->SetBackgroundColour(wxTransparentColor);