From 54255e8a535d08055e526888a6d4d2f4aa68c203 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