diff --git a/pcsx2/gui/FrameForGS.cpp b/pcsx2/gui/FrameForGS.cpp index 6a1849524a..545c5c7696 100644 --- a/pcsx2/gui/FrameForGS.cpp +++ b/pcsx2/gui/FrameForGS.cpp @@ -212,6 +212,9 @@ GSPanel::GSPanel( wxWindow* parent ) } Bind(wxEVT_SIZE, &GSPanel::OnResize, this); +#if wxCHECK_VERSION(3, 1, 3) + Bind(wxEVT_DPI_CHANGED, &GSPanel::OnResize, this); +#endif Bind(wxEVT_KEY_UP, &GSPanel::OnKeyDownOrUp, this); Bind(wxEVT_KEY_DOWN, &GSPanel::OnKeyDownOrUp, this); @@ -349,7 +352,7 @@ std::optional GSPanel::GetWindowInfo() return ret; } -void GSPanel::OnResize(wxSizeEvent& event) +void GSPanel::OnResize(wxEvent& event) { if( IsBeingDeleted() ) return; event.Skip(); diff --git a/pcsx2/gui/GSFrame.h b/pcsx2/gui/GSFrame.h index 592b66a8ba..347839497b 100644 --- a/pcsx2/gui/GSFrame.h +++ b/pcsx2/gui/GSFrame.h @@ -61,7 +61,7 @@ public: protected: void AppStatusEvent_OnSettingsApplied(); - void OnResize(wxSizeEvent& event); + void OnResize(wxEvent& event); void OnMouseEvent( wxMouseEvent& evt ); void OnHideMouseTimeout( wxTimerEvent& evt ); void OnKeyDownOrUp( wxKeyEvent& evt );