git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34400
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
else if ((w != image_w) || (h != image_h))
{
}
else if ((w != image_w) || (h != image_h))
{
- hotSpotX = int(hotSpotX * double(w) / double(image_w));
- hotSpotY = int(hotSpotY * double(h) / double(image_h));
+ hotSpotX = int(hotSpotX * double(w) / double(image_w));
+ hotSpotY = int(hotSpotY * double(h) / double(image_h));
imageSized = image.Scale(w, h);
}
imageSized = image.Scale(w, h);
}
- HCURSOR hcursor = wxBitmapToHCURSOR( wxBitmap(imageSized),
+ HCURSOR hcursor = wxBitmapToHCURSOR( wxBitmap(imageSized),
hotSpotX, hotSpotY );
if ( !hcursor )
hotSpotX, hotSpotY );
if ( !hcursor )
- m_refData = new wxCursorRefData(hcursor);
+ m_refData = new wxCursorRefData(hcursor,
+ !stdCursor.isStd /* delete it later */);