src/video/gem/SDL_gemevents.c
changeset 1237 a8068adf156b
parent 1221 8ef3e7e92a91
child 1267 fdc7ef6ecab4
     1.1 --- a/src/video/gem/SDL_gemevents.c	Fri Jan 06 20:57:59 2006 +0000
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Fri Jan 06 22:24:09 2006 +0000
     1.3 @@ -384,8 +384,10 @@
     1.4  	/* Mouse motion ? */
     1.5  	if ((prevmousex!=mx) || (prevmousey!=my)) {
     1.6  		if (GEM_mouse_relative) {
     1.7 -			SDL_PrivateMouseMotion(0, 1, SDL_AtariXbios_mousex, SDL_AtariXbios_mousey);
     1.8 -			SDL_AtariXbios_mousex = SDL_AtariXbios_mousey = 0;
     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  			int posx, posy;
    1.15