From 5ef472d6f683ee3f3011c94a3b75216cee433fdf Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 20 Nov 2021 22:36:06 +0100 Subject: [PATCH] Fix incorrect scaling of the simple view with hidpi screens (#2128). --- src/wx/simple_video_view.cc | 2 ++ 1 file changed, 2 insertions(+) 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 (); -- 2.30.2