diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-01-12 13:04:46 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-01-13 00:06:28 +0000 |
| commit | 99b4e0705e9007aabfec08ea2c8d1a84eda0d32e (patch) | |
| tree | dde51223bd3745d1b93c977f722434353fa02afe /src/lib/subtitle_content.h | |
| parent | 10818d95000c291af776ed9ba1c847257ded4b1f (diff) | |
Note whether subtitle effect colour is forced or not.
Diffstat (limited to 'src/lib/subtitle_content.h')
| -rw-r--r-- | src/lib/subtitle_content.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/subtitle_content.h b/src/lib/subtitle_content.h index b07182406..baf412bb6 100644 --- a/src/lib/subtitle_content.h +++ b/src/lib/subtitle_content.h @@ -79,6 +79,7 @@ public: void set_outline (bool); void set_shadow (bool); void set_effect_colour (dcp::Colour); + void unset_effect_colour (); void set_line_spacing (double s); void set_fade_in (ContentTime); void set_fade_out (ContentTime); @@ -139,7 +140,7 @@ public: return _shadow; } - dcp::Colour effect_colour () const { + boost::optional<dcp::Colour> effect_colour () const { boost::mutex::scoped_lock lm (_mutex); return _effect_colour; } @@ -197,7 +198,7 @@ private: boost::optional<dcp::Colour> _colour; bool _outline; bool _shadow; - dcp::Colour _effect_colour; + boost::optional<dcp::Colour> _effect_colour; /** scaling factor for line spacing; 1 is "standard", < 1 is closer together, > 1 is further apart */ double _line_spacing; ContentTime _fade_in; |
