From: Carl Hetherington Date: Sat, 20 Nov 2021 21:36:06 +0000 (+0100) Subject: Fix incorrect scaling of the simple view with hidpi screens (#2128). X-Git-Tag: v2.15.176~1 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=54255e8a535d08055e526888a6d4d2f4aa68c203 Fix incorrect scaling of the simple view with hidpi screens (#2128). --- 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 ();