vlc | branch: master | Felix Paul Kühne <[email protected]> | Sun Sep 29 14:23:04 2013 +0200| [ba03409b00de69f0aacb9258d5fc74e8a1aa0e58] | committer: Felix Paul Kühne
quartztext: handle invalid text colors > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ba03409b00de69f0aacb9258d5fc74e8a1aa0e58 --- modules/text_renderer/quartztext.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/text_renderer/quartztext.c b/modules/text_renderer/quartztext.c index 837f02c..809d7c7 100644 --- a/modules/text_renderer/quartztext.c +++ b/modules/text_renderer/quartztext.c @@ -593,7 +593,11 @@ static void setFontAttibutes(char *psz_fontname, int i_font_size, uint32_t i_fon slant); CFRelease(slant); - // Handle foreground colour + // fetch invalid colors + if (i_font_color == 0xFFFFFFFF) + i_font_color = 0x00FFFFFF; + + // Handle foreground color CGColorSpaceRef rgbColorSpace = CGColorSpaceCreateDeviceRGB(); CGFloat components[] = { (float)((i_font_color & 0x00ff0000) >> 16) / 255.0, (float)((i_font_color & 0x0000ff00) >> 8) / 255.0, _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
