[vlc-devel] commit: quartztext: Use 10.4 compatible alternative to kCGColorBlack ( Derk-Jan Hartman )

git version control git at videolan.org
Wed Sep 17 03:44:13 CEST 2008


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Wed Sep 17 03:45:58 2008 +0200| [f0d84d019c8c240c47672b82be123dc979b8d09e] | committer: Derk-Jan Hartman 

quartztext: Use 10.4 compatible alternative to kCGColorBlack

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

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

diff --git a/modules/misc/quartztext.c b/modules/misc/quartztext.c
index 485ac12..71a4bde 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




More information about the vlc-devel mailing list