summaryrefslogtreecommitdiff
path: root/src/lib/render_subtitles.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-03 23:08:27 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-03 23:08:27 +0000
commita5095486e606adfe36de635a48710cf98872c1c6 (patch)
treecf7a17cb48a258473fde05593653a759ad81f633 /src/lib/render_subtitles.cc
parent4a291fd1e78c3307d6dffbbadf1bd005ed5a430b (diff)
Various libdcp API changes.
Diffstat (limited to 'src/lib/render_subtitles.cc')
-rw-r--r--src/lib/render_subtitles.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/render_subtitles.cc b/src/lib/render_subtitles.cc
index b2900d27a..4ff28df6a 100644
--- a/src/lib/render_subtitles.cc
+++ b/src/lib/render_subtitles.cc
@@ -119,7 +119,7 @@ render_subtitles (list<dcp::SubtitleString> subtitles, dcp::Size target)
if (i->effect() == dcp::SHADOW) {
/* Drop-shadow effect */
- dcp::Color const ec = i->effect_color ();
+ dcp::Colour const ec = i->effect_colour ();
context->set_source_rgba (float(ec.r) / 255, float(ec.g) / 255, float(ec.b) / 255, fade_factor);
context->move_to (x + 4, y + 4);
layout->add_to_cairo_context (context);
@@ -128,7 +128,7 @@ render_subtitles (list<dcp::SubtitleString> subtitles, dcp::Size target)
/* The actual subtitle */
context->move_to (x, y);
- dcp::Color const c = i->color ();
+ dcp::Colour const c = i->colour ();
context->set_source_rgba (float(c.r) / 255, float(c.g) / 255, float(c.b) / 255, fade_factor);
layout->add_to_cairo_context (context);
context->fill ();
@@ -136,7 +136,7 @@ render_subtitles (list<dcp::SubtitleString> subtitles, dcp::Size target)
if (i->effect() == dcp::BORDER) {
/* Border effect */
context->move_to (x, y);
- dcp::Color ec = i->effect_color ();
+ dcp::Colour ec = i->effect_colour ();
context->set_source_rgba (float(ec.r) / 255, float(ec.g) / 255, float(ec.b) / 255, fade_factor);
layout->add_to_cairo_context (context);
context->stroke ();