summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-11-20 22:36:06 +0100
committerCarl Hetherington <cth@carlh.net>2021-11-20 22:36:06 +0100
commit5ef472d6f683ee3f3011c94a3b75216cee433fdf (patch)
tree4c0a2948065ee3db8b3d9b57f7f6c1aee848f68d
parentdff4de9f29435fe1222a6b039ca3231064f6bcd9 (diff)
Fix incorrect scaling of the simple view with hidpi screens (#2128).
-rw-r--r--src/wx/simple_video_view.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wx/simple_video_view.cc b/src/wx/simple_video_view.cc
index 1ac56bbfe..f4ff9a4eb 100644
--- a/src/wx/simple_video_view.cc
+++ b/src/wx/simple_video_view.cc
@@ -65,6 +65,8 @@ SimpleVideoView::paint ()
{
_state_timer.set("paint-panel");
wxPaintDC dc (_panel);
+ auto scale = 1 / dpi_scale_factor (_panel);
+ dc.SetLogicalScale (scale, scale);
auto const panel_size = _panel->GetSize ();