X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e45080c10b11190028e843b617564caec95e82dd..9e50ed28d99a07bff5f63c9f7952c3ae6be6cab0:/src/mac/carbon/cursor.cpp?ds=sidebyside diff --git a/src/mac/carbon/cursor.cpp b/src/mac/carbon/cursor.cpp index 0b8e4c8a7b..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) = @@ -689,7 +689,9 @@ wxCursor::~wxCursor() } // Global cursor setting +wxCursor gGlobalCursor; void wxSetCursor(const wxCursor& cursor) { cursor.MacInstall() ; + gGlobalCursor = cursor; }