src/video/gem/SDL_gemevents.c
changeset 1267 fdc7ef6ecab4
parent 1237 a8068adf156b
child 1310 a201a8c62522
     1.1 --- a/src/video/gem/SDL_gemevents.c	Wed Jan 25 18:11:56 2006 +0000
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Wed Jan 25 20:36:21 2006 +0000
     1.3 @@ -382,13 +382,13 @@
     1.4  	}
     1.5  
     1.6  	/* Mouse motion ? */
     1.7 -	if ((prevmousex!=mx) || (prevmousey!=my)) {
     1.8 -		if (GEM_mouse_relative) {
     1.9 -			if ((SDL_AtariXbios_mousex!=0) || (SDL_AtariXbios_mousey!=0)) {
    1.10 -				SDL_PrivateMouseMotion(0, 1, SDL_AtariXbios_mousex, SDL_AtariXbios_mousey);
    1.11 -				SDL_AtariXbios_mousex = SDL_AtariXbios_mousey = 0;
    1.12 -			}
    1.13 -		} else {
    1.14 +	if (GEM_mouse_relative) {
    1.15 +		if (SDL_AtariXbios_mousex || SDL_AtariXbios_mousey) {
    1.16 +			SDL_PrivateMouseMotion(0, 1, SDL_AtariXbios_mousex, SDL_AtariXbios_mousey);
    1.17 +			SDL_AtariXbios_mousex = SDL_AtariXbios_mousey = 0;
    1.18 +		}
    1.19 +	} else {
    1.20 +		if ((prevmousex!=mx) || (prevmousey!=my)) {
    1.21  			int posx, posy;
    1.22  
    1.23  			/* Give mouse position relative to window position */