Implement wxBitmap(const wxCursor&) constructor for OSX

This commit is contained in:
Igor Korot
2020-07-29 09:45:28 +02:00
committed by Maarten Bent
parent 0ff1bdec09
commit 9394d26c40
5 changed files with 18 additions and 3 deletions

View File

@@ -919,6 +919,13 @@ wxBitmap::wxBitmap(WXImage image)
(void)Create(image);
}
#if wxOSX_USE_COCOA
wxBitmap::wxBitmap(const wxCursor &cursor)
{
m_refData = new wxBitmapRefData( wxOSXGetNSImageFromNSCursor( cursor.GetHCURSOR() ) );
}
#endif
bool wxBitmap::Create(WXImage image)
{
UnRef();