Wx: Fix incorrect OSD scale after resize on Windows

This commit is contained in:
Connor McLaughlin 2022-04-15 13:57:42 +10:00 committed by refractionpcsx2
parent 3f31a4d25b
commit 800b458d3d
1 changed files with 4 additions and 0 deletions

View File

@ -363,7 +363,11 @@ void GSPanel::OnResize(wxEvent& event)
return;
const wxSize gs_vp_size(GetClientSize());
#ifdef _WIN32
const float scale = GetDpiScaleForWxWindow(this);
#else
const float scale = GetContentScaleFactor();
#endif
int width = gs_vp_size.GetWidth();
int height = gs_vp_size.GetHeight();