Debugger: Make memory search size depend on platform

This commit is contained in:
Ty Lamontagne 2022-01-21 19:04:04 -05:00 committed by refractionpcsx2
parent 8113e9a168
commit 4ccb922d1a
1 changed files with 4 additions and 1 deletions

View File

@ -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);