r1469 - trunk/misc

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Sep 1 17:22:41 EDT 2008


Author: tma
Date: 2008-09-01 17:22:41 -0400 (Mon, 01 Sep 2008)
New Revision: 1469

Modified:
   trunk/misc/sdl-win32-fixes.diff
Log:
* The latest round of SDL tweaks


Modified: trunk/misc/sdl-win32-fixes.diff
===================================================================
--- trunk/misc/sdl-win32-fixes.diff	2008-08-31 19:54:29 UTC (rev 1468)
+++ trunk/misc/sdl-win32-fixes.diff	2008-09-01 21:22:41 UTC (rev 1469)
@@ -171,8 +171,18 @@
 ===================================================================
 --- src/video/wincommon/SDL_sysmouse.c	(revision 4067)
 +++ src/video/wincommon/SDL_sysmouse.c	(working copy)
-@@ -208,15 +208,20 @@
+@@ -188,8 +188,7 @@
+ {
+ 	POINT mouse_pos;
  
+-	/* The fullscreen cursor must be done in software with DirectInput */
+-	if ( !this->screen || DDRAW_FULLSCREEN() ) {
++	if ( !this->screen ) {
+ 		return(0);
+ 	}
+ 
+@@ -208,15 +207,20 @@
+ 
  void WIN_WarpWMCursor(_THIS, Uint16 x, Uint16 y)
  {
 -	if ( DDRAW_FULLSCREEN() ) {
@@ -195,7 +205,7 @@
  		pt.x = x;
  		pt.y = y;
  		ClientToScreen(SDL_Window, &pt);
-@@ -227,20 +232,15 @@
+@@ -227,20 +231,15 @@
  /* Update the current mouse state and position */
  void WIN_UpdateMouse(_THIS)
  {
@@ -251,7 +261,7 @@
 +			SetCursorPos(center.x, center.y);
 +			posted = SDL_PrivateMouseMotion(0, 1, mouse.x, mouse.y);
 +		}
-+	} else {
++	} else if ( SDL_GetAppState() & SDL_APPMOUSEFOCUS ) {
 +		ScreenToClient(SDL_Window, &mouse);
 +#ifdef _WIN32_WCE
 +		if (SDL_VideoSurface)
@@ -288,7 +298,7 @@
 ===================================================================
 --- src/video/windx5/SDL_dx5events.c	(revision 4067)
 +++ src/video/windx5/SDL_dx5events.c	(working copy)
-@@ -143,7 +143,12 @@
+@@ -143,9 +143,14 @@
  		(DISCL_FOREGROUND|DISCL_NONEXCLUSIVE),
  		(DISCL_FOREGROUND|DISCL_NONEXCLUSIVE), handle_keyboard },
  	{ "mouse",
@@ -300,8 +310,11 @@
 +		&c_dfDIMouse,
 +#endif
  		(DISCL_FOREGROUND|DISCL_NONEXCLUSIVE),
- 		(DISCL_FOREGROUND|DISCL_EXCLUSIVE), handle_mouse },
+-		(DISCL_FOREGROUND|DISCL_EXCLUSIVE), handle_mouse },
++		(DISCL_FOREGROUND|DISCL_NONEXCLUSIVE), handle_mouse },
  	{ NULL, NULL, NULL, 0, 0, NULL }
+ };
+ 	
 @@ -285,6 +290,76 @@
  		}
  	}




More information about the quake3-commits mailing list