]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dragimag.cpp
don't compile DirectDraw code when wxUSE_DIRECTDRAW==0 (patch 1461271); set wxUSE_DIR...
[wxWidgets.git] / src / msw / dragimag.cpp
index 9249d8c35c19b873e0c5a8ad2a2a03a83d35072e..95ce39da522626614a09026c9a4ac7359054f91a 100644 (file)
@@ -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);
         }