Remove check for SM_CXCURSOR.

This commit is contained in:
Catalin 2017-03-05 15:10:52 +02:00
parent 0ff8012c4a
commit b53a62a970

View File

@ -334,14 +334,8 @@ 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);
}