test/testgesture.c
changeset 4921 40a43c6d9220
parent 4918 f5f70fed2c4c
child 5062 e8916fe9cfc8
     1.1 --- a/test/testgesture.c	Tue Nov 30 18:07:31 2010 -0800
     1.2 +++ b/test/testgesture.c	Tue Nov 30 18:08:01 2010 -0800
     1.3 @@ -81,8 +81,8 @@
     1.4    int y = (int)_y;
     1.5    float a;
     1.6    
     1.7 -  if(x > screen->w) return;
     1.8 -  if(y > screen->h) return;
     1.9 +  if(x < 0 || x > screen->w) return;
    1.10 +  if(y < 0 || y > screen->h) return;
    1.11  
    1.12    pixmem32 = (Uint32*) screen->pixels  + y*screen->pitch/BPP + x;
    1.13