Hi,
There is something wrong with mouse cursor position in windows when using
opengl in fullscreen mode; coordinates doesn’t seem to be what cursor
shows so menus do not work properly etc. In windowed mode all is ok. This
has been reported before too
(http://www.libsdl.org/pipermail/sdl/2001-July/037195.html).
Following patch should fix it but i’m not exactly sure if its the right
way to do it so someone who knows these better, please take a look.
— src/video/wincommon/SDL_sysevents.c~ Thu Sep 13 19:15:44 2001
+++ src/video/wincommon/SDL_sysevents.c Sat Dec 8 20:50:40 2001
@@ -202,7 +202,7 @@
case WM_MOUSEMOVE: {
/* Mouse is handled by DirectInput when fullscreen
*/
-
if ( SDL_VideoSurface && ! DINPUT_FULLSCREEN() ) {
-
if ( SDL_VideoSurface && ! DDRAW_FULLSCREEN() ) { Sint16 x, y; /* mouse has entered the window */
@@ -245,7 +245,7 @@
case WM_MOUSELEAVE: {
/* Mouse is handled by DirectInput when fullscreen
*/
-
if ( SDL_VideoSurface && ! DINPUT_FULLSCREEN() ) {
-
if ( SDL_VideoSurface && ! DDRAW_FULLSCREEN() ) { /* mouse has left the window */ /* or */ /* Elvis has left the building! */
PS. first post, and i’m not subscribed on list :)–
Mika Kolehmainen <@Mika_Kolehmainen> | gwl at IRCNet