projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2d6d07
)
Pass colour on when decoding.
author
Carl Hetherington
<cth@carlh.net>
Thu, 2 Jul 2015 12:39:19 +0000
(13:39 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 2 Jul 2015 12:39:19 +0000
(13:39 +0100)
src/lib/subrip_decoder.cc
patch
|
blob
|
history
diff --git
a/src/lib/subrip_decoder.cc
b/src/lib/subrip_decoder.cc
index 6542c1a8e2590e37b581cedd7efc942aa359d1be..c53e8960228910014a96ff3deca91c253aedfe0c 100644
(file)
--- a/
src/lib/subrip_decoder.cc
+++ b/
src/lib/subrip_decoder.cc
@@
-63,7
+63,7
@@
SubRipDecoder::pass ()
dcp::SubtitleString (
SubRipContent::font_id,
j->italic,
- dcp::Colour (
255, 255,
255),
+ dcp::Colour (
j->colour.r * 255, j->colour.g * 255, j->colour.b *
255),
j->font_size.points (72 * 11),
1.0,
dcp::Time (_subtitles[_next].from.all_as_seconds()),