comparison src/video/windx5/SDL_dx5events.c @ 325:1b5457c0a8ad

Fixed the bug where mouse cursor and SDL mouse coordinates didn't match in Windows OpenGL mode.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 31 Mar 2002 02:42:43 +0000
parents f6ffac90895c
children 13fc64213765
comparison
equal deleted inserted replaced
324:f25f666d609a 325:1b5457c0a8ad
296 Sint16 xrel, yrel; 296 Sint16 xrel, yrel;
297 Uint8 state; 297 Uint8 state;
298 Uint8 button; 298 Uint8 button;
299 299
300 /* If we are in windowed mode, Windows is taking care of the mouse */ 300 /* If we are in windowed mode, Windows is taking care of the mouse */
301 if ( ! (SDL_PublicSurface->flags & SDL_FULLSCREEN) ) { 301 if ( (SDL_PublicSurface->flags & SDL_OPENGL) ||
302 !(SDL_PublicSurface->flags & SDL_FULLSCREEN) ) {
302 return; 303 return;
303 } 304 }
304 305
305 /* If the mouse was lost, regain some sense of mouse state */ 306 /* If the mouse was lost, regain some sense of mouse state */
306 if ( mouse_lost ) { 307 if ( mouse_lost ) {