diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-11-20 22:36:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-11-20 22:36:06 +0100 |
| commit | 5ef472d6f683ee3f3011c94a3b75216cee433fdf (patch) | |
| tree | 4c0a2948065ee3db8b3d9b57f7f6c1aee848f68d | |
| parent | dff4de9f29435fe1222a6b039ca3231064f6bcd9 (diff) | |
Fix incorrect scaling of the simple view with hidpi screens (#2128).
| -rw-r--r-- | src/wx/simple_video_view.cc | 2 |
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 (); |
