diff --git a/src/mac/carbon/cursor.cpp b/src/mac/carbon/cursor.cpp index c48663d7fd..9ed8d0234a 100644 --- a/src/mac/carbon/cursor.cpp +++ b/src/mac/carbon/cursor.cpp @@ -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) =