src/video/gem/SDL_gemevents.c
changeset 927 c5689bd09eaa
parent 926 83db694556eb
child 928 6c87754f324c
     1.1 --- a/src/video/gem/SDL_gemevents.c	Tue Aug 10 18:53:38 2004 +0000
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Tue Aug 10 18:59:58 2004 +0000
     1.3 @@ -321,10 +321,10 @@
     1.4  
     1.5  			/* Give mouse position relative to window position */
     1.6  			posx = mx - x2;
     1.7 -			if (posx<0) posx = x2;
     1.8 +			if (posx<0) posx = 0;
     1.9  			if (posx>w2) posx = w2-1;
    1.10  			posy = my - y2;
    1.11 -			if (posy<0) posy = y2;
    1.12 +			if (posy<0) posy = 0;
    1.13  			if (posy>h2) posy = h2-1;
    1.14  
    1.15  			SDL_PrivateMouseMotion(0, 0, posx, posy);