Fixed compile error on Win32

--HG--
branch : SDL-1.2
This commit is contained in:
Sam Lantinga
2009-09-22 02:42:11 +00:00
parent 209fcdd166
commit 95fab18437

View File

@@ -323,7 +323,11 @@ static void DIB_GenerateMouseMotionEvent(_THIS)
extern int posted;
POINT mouse;
if(!GetCursorPos( &mouse ) && !GetLastStylusPos( &mouse )) return;
#ifdef _WIN32_WCE
if ( !GetCursorPos(&mouse) && !GetLastStylusPos(&mouse) ) return;
#else
if ( !GetCursorPos(&mouse) ) return;
#endif
if ( mouse_relative ) {
POINT center;