don't use deprecated symbols
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -179,8 +179,8 @@ wxCursor::wxCursor(const wxImage& image)
|
|||||||
const int w = wxCursorRefData::GetStandardWidth();
|
const int w = wxCursorRefData::GetStandardWidth();
|
||||||
const int h = wxCursorRefData::GetStandardHeight();
|
const int h = wxCursorRefData::GetStandardHeight();
|
||||||
|
|
||||||
const int hotSpotX = image.GetOptionInt(wxCUR_HOTSPOT_X);
|
const int hotSpotX = image.GetOptionInt(wxIMAGE_OPTION_CUR_HOTSPOT_X);
|
||||||
const int hotSpotY = image.GetOptionInt(wxCUR_HOTSPOT_Y);
|
const int hotSpotY = image.GetOptionInt(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
|
||||||
|
|
||||||
wxASSERT_MSG( hotSpotX >= 0 && hotSpotX < w &&
|
wxASSERT_MSG( hotSpotX >= 0 && hotSpotX < w &&
|
||||||
hotSpotY >= 0 && hotSpotY < h,
|
hotSpotY >= 0 && hotSpotY < h,
|
||||||
|
Reference in New Issue
Block a user