From 58f1f9eb5ca6ed4445022108b36aeb9ddc74c56e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 14 Nov 2021 08:54:44 +0100 Subject: [PATCH] Fix the build for older macOS. --- src/wx/film_viewer.cc | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.30.2