mirror of https://github.com/PCSX2/pcsx2.git
Wx: Fix incorrect OSD scale after resize on Windows
This commit is contained in:
parent
3f31a4d25b
commit
800b458d3d
|
@ -363,7 +363,11 @@ void GSPanel::OnResize(wxEvent& event)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const wxSize gs_vp_size(GetClientSize());
|
const wxSize gs_vp_size(GetClientSize());
|
||||||
|
#ifdef _WIN32
|
||||||
|
const float scale = GetDpiScaleForWxWindow(this);
|
||||||
|
#else
|
||||||
const float scale = GetContentScaleFactor();
|
const float scale = GetContentScaleFactor();
|
||||||
|
#endif
|
||||||
int width = gs_vp_size.GetWidth();
|
int width = gs_vp_size.GetWidth();
|
||||||
int height = gs_vp_size.GetHeight();
|
int height = gs_vp_size.GetHeight();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue