diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-07-28 15:44:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-07-28 15:44:48 +0100 |
| commit | 084eff7331b1a7c9923282c5860f490648ad633a (patch) | |
| tree | 70386b3508e47654aa4aeea1f3a9bcb2fcb6921f /src/stl_binary_writer.cc | |
| parent | d3cbf2fcc8762f8b3442f478db1a988544ab4ea1 (diff) | |
CENTRE_OF_SCREEN -> VERTICAL_CENTRE_OF_SCREEN.
Diffstat (limited to 'src/stl_binary_writer.cc')
| -rw-r--r-- | src/stl_binary_writer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stl_binary_writer.cc b/src/stl_binary_writer.cc index 60adda4..e4e06fb 100644 --- a/src/stl_binary_writer.cc +++ b/src/stl_binary_writer.cc @@ -99,7 +99,7 @@ vertical_position (sub::Line const & line) case TOP_OF_SCREEN: vp = rint (line.vertical_position.proportional.get() * ROWS); break; - case CENTRE_OF_SCREEN: + case VERTICAL_CENTRE_OF_SCREEN: vp = rint (line.vertical_position.proportional.get() * ROWS + (ROWS / 2.0)); break; case BOTTOM_OF_SCREEN: @@ -114,7 +114,7 @@ vertical_position (sub::Line const & line) case TOP_OF_SCREEN: vp = prop * ROWS; break; - case CENTRE_OF_SCREEN: + case VERTICAL_CENTRE_OF_SCREEN: vp = (prop + 0.5) * ROWS; break; case BOTTOM_OF_SCREEN: |
