]> git.sesse.net Git - vlc/commitdiff
quartztext: One more fix to [f0d84d019c8c240c47672b82be123dc979b8d09e]
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 17 Sep 2008 02:14:27 +0000 (04:14 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Wed, 17 Sep 2008 02:14:27 +0000 (04:14 +0200)
This properly creates the colorspace.

modules/misc/quartztext.c

index 382cd8a5e7c7e6e6a08ab7f8cf198be180113524..f0d6a41728e2313a16ff5ff5a646550d03726307 100644 (file)
@@ -1235,7 +1235,7 @@ static offscreen_bitmap_t *Compose( int i_text_align, UniChar *psz_utf16_str, ui
             CGContextSetTextDrawingMode( p_context, kCGTextFillStroke );
             CGContextSetShadow( p_context, CGSizeMake( 0, 0 ), 5 );
             float black_components[4] = {0, 0, 0, 1};
-            CGContextSetShadowWithColor (p_context, CGSizeMake( 0, 0 ), 5, CGColorCreate( kCGColorSpaceGenericRGB, black_components ));
+            CGContextSetShadowWithColor (p_context, CGSizeMake( 0, 0 ), 5, CGColorCreate( CGColorSpaceCreateWithName( kCGColorSpaceGenericRGB ), black_components ));
             do
             {
                 // ATSUBreakLine will automatically pick up any manual '\n's also