]> git.saurik.com Git - wxWidgets.git/commitdiff
GetPixel isn't returning RGBColor anymore, so change call
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 3 Apr 2008 11:41:32 +0000 (11:41 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 3 Apr 2008 11:41:32 +0000 (11:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/cursor.cpp

index c48663d7fd1a2b51dfea0eb88259ccb3d10a67d5..9ed8d0234a57ae30b734f7b1114660329fbaa47f 100644 (file)
@@ -457,7 +457,7 @@ void wxCursor::CreateFromImage(const wxImage & image)
 
                 maskbits |= ( 1 << (15 - x) ) ;
 
-                col = *((RGBColor*) wxColor( r , g , b ).GetPixel()) ;
+                wxColor( r , g , b ).GetRGBColor( &col );
             }
 
             *((*(**ch).crsrData) + y * bytesPerRow + x) =