diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-19 14:41:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-02-19 14:41:49 +0100 |
| commit | 209bbb88cfcb00ca2185583b74066ad7f09ebd81 (patch) | |
| tree | d931ac9fc7bc7e0faacae1044c75c2796292f025 | |
| parent | ff79e412b6cb254c368b45fc122a16fb0712633f (diff) | |
Fix various preview errors on high-DPI screens (#2774).
The logical scale was previously not taken into account so the outline
rectangle was wrong and the padding was usually missing.
| -rw-r--r-- | src/wx/simple_video_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/simple_video_view.cc b/src/wx/simple_video_view.cc index 2a0575f26..cbfd7d4ac 100644 --- a/src/wx/simple_video_view.cc +++ b/src/wx/simple_video_view.cc @@ -75,7 +75,7 @@ SimpleVideoView::paint () auto scale = 1 / dpi_scale_factor (_panel); dc.SetLogicalScale (scale, scale); - auto const panel_size = dcp::Size(_panel->GetSize().GetWidth(), _panel->GetSize().GetHeight()); + auto const panel_size = dcp::Size(_panel->GetSize().GetWidth() / scale, _panel->GetSize().GetHeight() / scale); auto pad = pad_colour(); dcp::Size out_size; |
