From 963831273c165e83374a71f62f61268238cb533b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 22 Sep 2009 02:42:11 +0000 Subject: [PATCH] Fixed compile error on Win32 --- src/video/windib/SDL_dibevents.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/video/windib/SDL_dibevents.c b/src/video/windib/SDL_dibevents.c index e9a78860a..af9ceee74 100644 --- a/src/video/windib/SDL_dibevents.c +++ b/src/video/windib/SDL_dibevents.c @@ -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;