summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-01-16 14:49:06 +0100
committerCarl Hetherington <cth@carlh.net>2022-01-16 14:49:06 +0100
commitc17c37ac934d4821546770d51d75e0198103ea79 (patch)
treeb9ff6e22069a6dcc8bd7f55e0be5ebf8b57d2296
parent6fde256f30f7d1a3fcf54f8b546bfcb6454205ac (diff)
Another macOS build fix with Rect.
-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 48d5354ef..532c6978b 100644
--- a/src/wx/content_menu.cc
+++ b/src/wx/content_menu.cc
@@ -511,7 +511,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),