diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-10 20:29:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-10 20:29:00 +0100 |
| commit | 320a74efb8d9c8aacded2799459a92d5b7235d90 (patch) | |
| tree | 1f547cb3cde20bd025dabddc6209390e22826b6a /src/lib/subtitle_content.h | |
| parent | 623f3c66821d6a99bf0e683a8072b99a168f3a1c (diff) | |
Make subtitles work at least a bit.
Diffstat (limited to 'src/lib/subtitle_content.h')
| -rw-r--r-- | src/lib/subtitle_content.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/subtitle_content.h b/src/lib/subtitle_content.h index 5eb4e500d..1092b7b1c 100644 --- a/src/lib/subtitle_content.h +++ b/src/lib/subtitle_content.h @@ -37,26 +37,26 @@ public: void as_xml (xmlpp::Node *) const; - void set_subtitle_offset (int); - void set_subtitle_scale (float); + void set_subtitle_offset (double); + void set_subtitle_scale (double); - int subtitle_offset () const { + double subtitle_offset () const { boost::mutex::scoped_lock lm (_mutex); return _subtitle_offset; } - float subtitle_scale () const { + double subtitle_scale () const { boost::mutex::scoped_lock lm (_mutex); return _subtitle_scale; } private: - /** y offset for placing subtitles, in source pixels; +ve is further down - the frame, -ve is further up. + /** y offset for placing subtitles, as a proportion of the container height; + +ve is further down the frame, -ve is further up. */ - int _subtitle_offset; + double _subtitle_offset; /** scale factor to apply to subtitles */ - float _subtitle_scale; + double _subtitle_scale; }; #endif |
