From: Derk-Jan Hartman Date: Wed, 17 Sep 2008 01:45:58 +0000 (+0200) Subject: quartztext: Use 10.4 compatible alternative to kCGColorBlack X-Git-Tag: 1.0.0-pre1~3209 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=f0d84d019c8c240c47672b82be123dc979b8d09e;p=vlc quartztext: Use 10.4 compatible alternative to kCGColorBlack --- diff --git a/modules/misc/quartztext.c b/modules/misc/quartztext.c index 485ac1223e..71a4bdec3a 100644 --- a/modules/misc/quartztext.c +++ b/modules/misc/quartztext.c @@ -1234,7 +1234,8 @@ static offscreen_bitmap_t *Compose( int i_text_align, UniChar *psz_utf16_str, ui CGContextSetRGBStrokeColor( p_context, 0, 0, 0, 0.5 ); CGContextSetTextDrawingMode( p_context, kCGTextFillStroke ); CGContextSetShadow( p_context, CGSizeMake( 0, 0 ), 5 ); - CGContextSetShadowWithColor (p_context, CGSizeMake( 0, 0 ), 5, CGColorGetConstantColor(kCGColorBlack)); + float black_components[4] = {1, 1, 1, 1}; + CGContextSetShadowWithColor (p_context, CGSizeMake( 0, 0 ), 5, CGColorCreate( kCGColorSpaceGenericRGB, black_components )); do { // ATSUBreakLine will automatically pick up any manual '\n's also