X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d7eaf91403705cdd94acaae0d7413e711cce3dc..99328372915eca33480fb8d74da7a43d43c49c10:/src/msw/dragimag.cpp diff --git a/src/msw/dragimag.cpp b/src/msw/dragimag.cpp index 9249d8c35c..95ce39da52 100644 --- a/src/msw/dragimag.cpp +++ b/src/msw/dragimag.cpp @@ -297,9 +297,14 @@ bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullS #else if (!m_hCursorImageList) { +#ifndef SM_CXCURSOR + // Smartphone may not have these metric symbol + int cxCursor = 16; + int cyCursor = 16; +#else int cxCursor = ::GetSystemMetrics(SM_CXCURSOR); int cyCursor = ::GetSystemMetrics(SM_CYCURSOR); - +#endif m_hCursorImageList = (WXHIMAGELIST) ImageList_Create(cxCursor, cyCursor, ILC_MASK, 1, 1); }