changeset 4232:29605c881b29 SDL-1.2

Fixed compile error on Win32
author Sam Lantinga <slouken@libsdl.org>
date Tue, 22 Sep 2009 02:42:11 +0000
parents 2d5c44f1be14
children 48e63c07bbbf
files src/video/windib/SDL_dibevents.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;