From 800b458d3d2e153e3644392e03ac225905883a86 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 15 Apr 2022 13:57:42 +1000 Subject: [PATCH] Wx: Fix incorrect OSD scale after resize on Windows --- pcsx2/gui/FrameForGS.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcsx2/gui/FrameForGS.cpp b/pcsx2/gui/FrameForGS.cpp index 7ef9e075bc..8556afbcb6 100644 --- a/pcsx2/gui/FrameForGS.cpp +++ b/pcsx2/gui/FrameForGS.cpp @@ -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();