]> git.sesse.net Git - vlc/commitdiff
quartztext: Use 10.4 compatible alternative to kCGColorBlack
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 17 Sep 2008 01:45:58 +0000 (03:45 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Wed, 17 Sep 2008 01:45:58 +0000 (03:45 +0200)
modules/misc/quartztext.c

index 485ac1223edfcd91215b90146f1d80a0009d826f..71a4bdec3aabd0356756826eef92078505c0544d 100644 (file)
@@ -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