From d54c8291f83bd9f2cf964ca0372f74734ccb0ae2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 13 Jan 2018 01:00:08 +0000 Subject: Forcing for fade in/out. --- src/lib/subtitle_content.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/lib/subtitle_content.h') diff --git a/src/lib/subtitle_content.h b/src/lib/subtitle_content.h index 47b7b5cd9..58dc51510 100644 --- a/src/lib/subtitle_content.h +++ b/src/lib/subtitle_content.h @@ -81,8 +81,10 @@ public: void unset_effect_colour (); void set_line_spacing (double s); void set_fade_in (ContentTime); + void unset_fade_in (); void set_fade_out (ContentTime); void set_outline_width (int); + void unset_fade_out (); bool use () const { boost::mutex::scoped_lock lm (_mutex); @@ -144,12 +146,12 @@ public: return _line_spacing; } - ContentTime fade_in () const { + boost::optional fade_in () const { boost::mutex::scoped_lock lm (_mutex); return _fade_in; } - ContentTime fade_out () const { + boost::optional fade_out () const { boost::mutex::scoped_lock lm (_mutex); return _fade_out; } @@ -194,8 +196,8 @@ private: boost::optional _effect_colour; /** scaling factor for line spacing; 1 is "standard", < 1 is closer together, > 1 is further apart */ double _line_spacing; - ContentTime _fade_in; - ContentTime _fade_out; + boost::optional _fade_in; + boost::optional _fade_out; int _outline_width; }; -- cgit v1.2.3