summaryrefslogtreecommitdiff
path: root/src/stl_binary_writer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-10-06 13:29:36 +0100
committerCarl Hetherington <cth@carlh.net>2014-10-06 13:29:36 +0100
commit4ada3e7583dfdc658dbebca3c3603be1e3477c12 (patch)
tree0516fdd142b79e7083ed3d455fe45fffce26a9a8 /src/stl_binary_writer.cc
parent86440b2afe0a2b83a7e810f37b1f65dbddee90e8 (diff)
Template-ize collect so that any container can be used.
Add new vertical reference of TOP_OF_SUBTITLE, and use references with line numbers as well as proportional specifiers. Add a couple of methods to MetricTime.
Diffstat (limited to 'src/stl_binary_writer.cc')
-rw-r--r--src/stl_binary_writer.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/stl_binary_writer.cc b/src/stl_binary_writer.cc
index 9b98b84..0ebdc2c 100644
--- a/src/stl_binary_writer.cc
+++ b/src/stl_binary_writer.cc
@@ -135,18 +135,22 @@ sub::write_stl_binary (
if (j->vertical_position.proportional) {
switch (j->vertical_position.reference.get ()) {
- case TOP:
+ case TOP_OF_SCREEN:
check_top.insert (j->vertical_position.proportional.get ());
break;
- case CENTRE:
+ case CENTRE_OF_SCREEN:
check_centre.insert (j->vertical_position.proportional.get ());
break;
- case BOTTOM:
+ case BOTTOM_OF_SCREEN:
check_bottom.insert (j->vertical_position.proportional.get ());
break;
+ case TOP_OF_SUBTITLE:
+ /* XXX: something needs to be done here */
+ break;
}
} else {
check_rows.insert (j->vertical_position.line.get ());
+ /* XXX: this needs to take vertical_position.reference into account */
}
}
}