]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/cursor.cpp
fix wxTextCtrl::operator<<('\n') in Unicode build (should use char overload, not...
[wxWidgets.git] / 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) =