Wrong check for minimum mouse position
authorPatrice Mandin <patmandin@gmail.com>
Tue, 10 Aug 2004 18:59:58 +0000
changeset 927 c5689bd09eaa
parent 926 83db694556eb
child 928 6c87754f324c
Wrong check for minimum mouse position
src/video/gem/SDL_gemevents.c
--- 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);