Fixed the bug where mouse cursor and SDL mouse coordinates didn't match
authorSam Lantinga
Sun, 31 Mar 2002 02:42:43 +0000
changeset 3251b5457c0a8ad
parent 324 f25f666d609a
child 326 72d55d02cb47
Fixed the bug where mouse cursor and SDL mouse coordinates didn't match
in Windows OpenGL mode.
src/video/wincommon/SDL_lowvideo.h
src/video/windx5/SDL_dx5events.c
     1.1 --- a/src/video/wincommon/SDL_lowvideo.h	Sat Mar 30 21:41:01 2002 +0000
     1.2 +++ b/src/video/wincommon/SDL_lowvideo.h	Sun Mar 31 02:42:43 2002 +0000
     1.3 @@ -48,11 +48,7 @@
     1.4  	(strcmp(this->name, "directx") == 0)				\
     1.5  )
     1.6  
     1.7 -#define DINPUT_FULLSCREEN() 						\
     1.8 -(									\
     1.9 -	((SDL_VideoSurface->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN) && \
    1.10 -	(strcmp(this->name, "directx") == 0)				\
    1.11 -)
    1.12 +#define DINPUT_FULLSCREEN()	DDRAW_FULLSCREEN()
    1.13  
    1.14  /* The main window -- and a function to set it for the audio */
    1.15  extern const char *SDL_Appname;
     2.1 --- a/src/video/windx5/SDL_dx5events.c	Sat Mar 30 21:41:01 2002 +0000
     2.2 +++ b/src/video/windx5/SDL_dx5events.c	Sun Mar 31 02:42:43 2002 +0000
     2.3 @@ -298,7 +298,8 @@
     2.4  	Uint8 button;
     2.5  
     2.6  	/* If we are in windowed mode, Windows is taking care of the mouse */
     2.7 -	if ( ! (SDL_PublicSurface->flags & SDL_FULLSCREEN) ) {
     2.8 +	if (  (SDL_PublicSurface->flags & SDL_OPENGL) ||
     2.9 +	     !(SDL_PublicSurface->flags & SDL_FULLSCREEN) ) {
    2.10  		return;
    2.11  	}
    2.12