[vlc-devel] commit: quartztext: One more fix to [ f0d84d019c8c240c47672b82be123dc979b8d09e] (Derk-Jan Hartman )

git version control git at videolan.org
Wed Sep 17 04:11:42 CEST 2008


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Wed Sep 17 04:14:27 2008 +0200| [05128dd4d0ee08aec1045309d664e39ac1a5583a] | committer: Derk-Jan Hartman 

quartztext: One more fix to  [f0d84d019c8c240c47672b82be123dc979b8d09e]

This properly creates the colorspace.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=05128dd4d0ee08aec1045309d664e39ac1a5583a
---

 modules/misc/quartztext.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/misc/quartztext.c b/modules/misc/quartztext.c
index 382cd8a..f0d6a41 100644
--- a/modules/misc/quartztext.c
+++ b/modules/misc/quartztext.c
@@ -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




More information about the vlc-devel mailing list