Remove check for SM_CXCURSOR.
This commit is contained in:
@@ -334,14 +334,8 @@ bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullS
|
|||||||
#else
|
#else
|
||||||
if (!m_hCursorImageList)
|
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 cxCursor = ::GetSystemMetrics(SM_CXCURSOR);
|
||||||
int cyCursor = ::GetSystemMetrics(SM_CYCURSOR);
|
int cyCursor = ::GetSystemMetrics(SM_CYCURSOR);
|
||||||
#endif
|
|
||||||
m_hCursorImageList = (WXHIMAGELIST) ImageList_Create(cxCursor, cyCursor, ILC_MASK, 1, 1);
|
m_hCursorImageList = (WXHIMAGELIST) ImageList_Create(cxCursor, cyCursor, ILC_MASK, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user