X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..fa28826dd3836d6d50c92ca8de1e97dd4c8cf3bc:/src/msw/cursor.cpp diff --git a/src/msw/cursor.cpp b/src/msw/cursor.cpp index 395909699d..3a6a3e9e80 100644 --- a/src/msw/cursor.cpp +++ b/src/msw/cursor.cpp @@ -209,11 +209,15 @@ wxCursor::wxCursor(const wxImage& image) HCURSOR hcursor = wxBitmapToHCURSOR( wxBitmap(imageSized), hotSpotX, hotSpotY ); +#if wxUSE_WXDIB if ( !hcursor ) { wxLogWarning(_("Failed to create cursor.")); return; } +#else + HCURSOR hcursor = 0; +#endif m_refData = new wxCursorRefData(hcursor, true /* delete it later */); }