projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89aaf82
)
Fix the build for older macOS.
author
Carl Hetherington
<cth@carlh.net>
Sun, 14 Nov 2021 07:54:44 +0000
(08:54 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 14 Nov 2021 13:19:54 +0000
(14:19 +0100)
src/wx/film_viewer.cc
patch
|
blob
|
history
diff --git
a/src/wx/film_viewer.cc
b/src/wx/film_viewer.cc
index a93b4226e97084f228b104d5957e8351c0b5e7d7..392c68d70610444ea62ca085855c8080758782b5 100644
(file)
--- 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);