From 4ada3e7583dfdc658dbebca3c3603be1e3477c12 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 6 Oct 2014 13:29:36 +0100 Subject: 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. --- src/subrip_reader.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/subrip_reader.cc') diff --git a/src/subrip_reader.cc b/src/subrip_reader.cc index 2728d20..8bd2005 100644 --- a/src/subrip_reader.cc +++ b/src/subrip_reader.cc @@ -131,8 +131,8 @@ SubripReader::convert_line (string t, int line_number, TimePair from, TimePair t p.font_size.set_points (48); p.from = from; p.to = to; - p.vertical_position.proportional = 0.7 + line_number * 0.1; - p.vertical_position.reference = TOP; + p.vertical_position.line = line_number; + p.vertical_position.reference = TOP_OF_SUBTITLE; /* XXX: missing support */ /* XXX: nesting of tags e.g. foobarbazfredjim might -- cgit v1.2.3