diff src/video/wincommon/SDL_sysevents.c @ 4249:429c8dd3175d SDL-1.2

Fixed bug #713 Don't clamp the mouse coordinates to the video surface size, instead clamp them to the last known window size. This allows users to get the correct mouse coordinates even if they don't call SDL_SetVideoMode() in response to an SDL_VIDEORESIZE event (used as a hack to retain the OpenGL context on Windows and Linux after a window resize)
author Sam Lantinga <slouken@libsdl.org>
date Sun, 27 Sep 2009 05:18:43 +0000
parents d7294b7c732d
children c483b474b1cf
line wrap: on
line diff
--- a/src/video/wincommon/SDL_sysevents.c	Sun Sep 27 04:49:30 2009 +0000
+++ b/src/video/wincommon/SDL_sysevents.c	Sun Sep 27 05:18:43 2009 +0000
@@ -420,7 +420,6 @@
 			/* Mouse is handled by DirectInput when fullscreen */
 			if ( SDL_VideoSurface && ! DINPUT() ) {
 				WORD xbuttonval = 0;
-				Sint16 x, y;
 				Uint8 button, state;
 
 				/* DJM: