summaryrefslogtreecommitdiff
path: root/src/stl_binary_reader.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-07-28 15:50:26 +0100
committerCarl Hetherington <cth@carlh.net>2017-07-28 15:50:26 +0100
commit9d44328087d41016745ace95e7e989135056149b (patch)
tree9b7208d6364a949ded183ff380c54602075a26ca /src/stl_binary_reader.cc
parent084eff7331b1a7c9923282c5860f490648ad633a (diff)
Make HorizontalPosition a class containing a reference enum.
Diffstat (limited to 'src/stl_binary_reader.cc')
-rw-r--r--src/stl_binary_reader.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stl_binary_reader.cc b/src/stl_binary_reader.cc
index 0c24a14..55e0188 100644
--- a/src/stl_binary_reader.cc
+++ b/src/stl_binary_reader.cc
@@ -115,13 +115,13 @@ STLBinaryReader::STLBinaryReader (istream& in)
switch (h) {
case 0:
case 2:
- sub.horizontal_position = CENTRE;
+ sub.horizontal_position.reference = HORIZONTAL_CENTRE_OF_SCREEN;
break;
case 1:
- sub.horizontal_position = LEFT;
+ sub.horizontal_position.reference = LEFT_OF_SCREEN;
break;
case 3:
- sub.horizontal_position = RIGHT;
+ sub.horizontal_position.reference = RIGHT_OF_SCREEN;
break;
}