X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ddcbe73271b7ef37af3dfbab711d4c7337d3ad4b..9e50ed28d99a07bff5f63c9f7952c3ae6be6cab0:/src/mac/carbon/cursor.cpp 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) =