diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-27 01:44:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-27 01:44:20 +0100 |
| commit | 1d2a51bdc8315fa7283be329669860e435a1513f (patch) | |
| tree | 7f1ccaf99bd89f61377f36405f12178586d65f8f /src/wx/video_panel.cc | |
| parent | 886c256f532e0f43bcd7f6f9924147c151293cab (diff) | |
Use enum class for VideoRange.
Diffstat (limited to 'src/wx/video_panel.cc')
| -rw-r--r-- | src/wx/video_panel.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/video_panel.cc b/src/wx/video_panel.cc index cfbc78c34..b9c09cc69 100644 --- a/src/wx/video_panel.cc +++ b/src/wx/video_panel.cc @@ -311,10 +311,10 @@ VideoPanel::range_changed () switch (_range->GetSelection()) { case 0: - vc.front()->video->set_range (VIDEO_RANGE_FULL); + vc.front()->video->set_range (VideoRange::FULL); break; case 1: - vc.front()->video->set_range (VIDEO_RANGE_VIDEO); + vc.front()->video->set_range (VideoRange::VIDEO); break; default: DCPOMATIC_ASSERT (false); @@ -444,7 +444,7 @@ VideoPanel::film_content_changed (int property) setup_sensitivity (); } else if (property == VideoContentProperty::RANGE) { if (vcs) { - checked_set (_range, vcs->video->range() == VIDEO_RANGE_FULL ? 0 : 1); + checked_set (_range, vcs->video->range() == VideoRange::FULL ? 0 : 1); } else { checked_set (_range, 0); } |
