diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-07-28 15:50:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-07-28 15:50:26 +0100 |
| commit | 9d44328087d41016745ace95e7e989135056149b (patch) | |
| tree | 9b7208d6364a949ded183ff380c54602075a26ca /src/dcp_reader.cc | |
| parent | 084eff7331b1a7c9923282c5860f490648ad633a (diff) | |
Make HorizontalPosition a class containing a reference enum.
Diffstat (limited to 'src/dcp_reader.cc')
| -rw-r--r-- | src/dcp_reader.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dcp_reader.cc b/src/dcp_reader.cc index bedd0e2..6103470 100644 --- a/src/dcp_reader.cc +++ b/src/dcp_reader.cc @@ -97,13 +97,13 @@ DCPReader::DCPReader (boost::filesystem::path file) switch (i.h_align()) { case dcp::HALIGN_LEFT: - rs.horizontal_position = LEFT; + rs.horizontal_position.reference = LEFT_OF_SCREEN; break; case dcp::HALIGN_CENTER: - rs.horizontal_position = CENTRE; + rs.horizontal_position.reference = HORIZONTAL_CENTRE_OF_SCREEN; break; case dcp::HALIGN_RIGHT: - rs.horizontal_position = RIGHT; + rs.horizontal_position.reference = RIGHT_OF_SCREEN; break; } |
