summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-04-30 10:03:07 +0200
committerCarl Hetherington <cth@carlh.net>2022-04-30 10:03:07 +0200
commitc2e8f4d493283084a99994b5130c60633ee66083 (patch)
treee5086c655db1ed30ac55aa06a60cc3f128f51949
parent4b76291eb0328840de4c5938a1be6340e5dea0fe (diff)
Another macOS build fix.
-rw-r--r--src/wx/content_menu.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/content_menu.cc b/src/wx/content_menu.cc
index 7e4659479..ed515f6c8 100644
--- a/src/wx/content_menu.cc
+++ b/src/wx/content_menu.cc
@@ -555,7 +555,7 @@ ContentMenu::auto_crop ()
auto const content = _content.front();
auto const current_crop = content->video->actual_crop();
viewer->set_crop_guess (
- Rect<float>(
+ dcpomatic::Rect<float>(
static_cast<float>(std::max(0, crop.left - current_crop.left)) / content->video->size().width,
static_cast<float>(std::max(0, crop.top - current_crop.top)) / content->video->size().height,
1.0f - (static_cast<float>(std::max(0, crop.left - current_crop.left + crop.right - current_crop.right)) / content->video->size().width),