Commit b2f44308 authored by Sam Lantinga's avatar Sam Lantinga

Fixed the bug where mouse cursor and SDL mouse coordinates didn't match

in Windows OpenGL mode.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40326
parent ff3fb0db
......@@ -48,11 +48,7 @@ static char rcsid =
(strcmp(this->name, "directx") == 0) \
)
#define DINPUT_FULLSCREEN() \
( \
((SDL_VideoSurface->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN) && \
(strcmp(this->name, "directx") == 0) \
)
#define DINPUT_FULLSCREEN() DDRAW_FULLSCREEN()
/* The main window -- and a function to set it for the audio */
extern const char *SDL_Appname;
......
......@@ -298,7 +298,8 @@ static void handle_mouse(const int numevents, DIDEVICEOBJECTDATA *ptrbuf)
Uint8 button;
/* If we are in windowed mode, Windows is taking care of the mouse */
if ( ! (SDL_PublicSurface->flags & SDL_FULLSCREEN) ) {
if ( (SDL_PublicSurface->flags & SDL_OPENGL) ||
!(SDL_PublicSurface->flags & SDL_FULLSCREEN) ) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment