# HG changeset patch # User Sam Lantinga # Date 1253587331 0 # Node ID 29605c881b2999a6dd65944cf5c14043ae4c8e4f # Parent 2d5c44f1be149c5c70e69423152bc1c59bf5cb3c Fixed compile error on Win32 diff -r 2d5c44f1be14 -r 29605c881b29 src/video/windib/SDL_dibevents.c --- a/src/video/windib/SDL_dibevents.c Tue Sep 22 02:37:30 2009 +0000 +++ b/src/video/windib/SDL_dibevents.c Tue Sep 22 02:42:11 2009 +0000 @@ -323,7 +323,11 @@ 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;