Fixed compile error on Win32 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Tue, 22 Sep 2009 02:42:11 +0000
branchSDL-1.2
changeset 4232 29605c881b29
parent 4231 2d5c44f1be14
child 4233 48e63c07bbbf
Fixed compile error on Win32
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;