diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-11-14 08:54:44 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-11-14 14:19:54 +0100 |
| commit | ac34066d5e448d1984d11a180be74e31b6e13b5c (patch) | |
| tree | c99061ce696705767b01d446f667e59c4b28d07c /src | |
| parent | 89aaf8225c9a6ca079317b248039fba103e8d4a3 (diff) | |
Fix the build for older macOS.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_viewer.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index a93b4226e..392c68d70 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -283,7 +283,11 @@ FilmViewer::calculate_sizes () auto const container = _film->container (); +#if wxCHECK_VERSION(3,1,0) auto const dpi_scale_factor = _video_view->get()->GetDPIScaleFactor(); +#else + auto const dpi_scale_factor = 1; +#endif int const video_view_width = std::round(_video_view->get()->GetSize().x * dpi_scale_factor); int const video_view_height = std::round(_video_view->get()->GetSize().y * dpi_scale_factor); |
