Fix the build for older macOS.
authorCarl Hetherington <cth@carlh.net>
Sun, 14 Nov 2021 07:54:44 +0000 (08:54 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 14 Nov 2021 13:19:54 +0000 (14:19 +0100)
src/wx/film_viewer.cc

index a93b4226e97084f228b104d5957e8351c0b5e7d7..392c68d70610444ea62ca085855c8080758782b5 100644 (file)
@@ -283,7 +283,11 @@ FilmViewer::calculate_sizes ()
 
        auto const container = _film->container ();
 
 
        auto const container = _film->container ();
 
+#if wxCHECK_VERSION(3,1,0)
        auto const dpi_scale_factor = _video_view->get()->GetDPIScaleFactor();
        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);
 
        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);