summaryrefslogtreecommitdiff
path: root/src/lib/subtitle_content.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/subtitle_content.h')
-rw-r--r--src/lib/subtitle_content.h16
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