changeset 927:c5689bd09eaa

Wrong check for minimum mouse position
author Patrice Mandin <patmandin@gmail.com>
date Tue, 10 Aug 2004 18:59:58 +0000
parents 83db694556eb
children 6c87754f324c
files src/video/gem/SDL_gemevents.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/gem/SDL_gemevents.c	Tue Aug 10 18:53:38 2004 +0000
+++ b/src/video/gem/SDL_gemevents.c	Tue Aug 10 18:59:58 2004 +0000
@@ -321,10 +321,10 @@
 
 			/* Give mouse position relative to window position */
 			posx = mx - x2;
-			if (posx<0) posx = x2;
+			if (posx<0) posx = 0;
 			if (posx>w2) posx = w2-1;
 			posy = my - y2;
-			if (posy<0) posy = y2;
+			if (posy<0) posy = 0;
 			if (posy>h2) posy = h2-1;
 
 			SDL_PrivateMouseMotion(0, 0, posx, posy);