Initial Commit of full native bitmap macOS implementation
Right now, to better test regressions, with dual implementation
This commit is contained in:
committed by
Vadim Zeitlin
parent
a5aa044a7b
commit
e7d21f6638
@@ -256,7 +256,7 @@ void wxCursor::CreateFromImage(const wxImage & image)
|
||||
int hotSpotY = image.GetOptionInt(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
|
||||
#if wxOSX_USE_COCOA
|
||||
wxBitmap bmp( image );
|
||||
CGImageRef cgimage = wxMacCreateCGImageFromBitmap(bmp);
|
||||
CGImageRef cgimage = bmp.CreateCGImage();
|
||||
if ( cgimage )
|
||||
{
|
||||
M_CURSORDATA->m_hCursor = wxMacCocoaCreateCursorFromCGImage( cgimage, hotSpotX, hotSpotY );
|
||||
|
||||
Reference in New Issue
Block a user