test/testshape.c
changeset 4849 0b918c186938
parent 4837 2e446923c9fb
child 4857 579dabb141ea
     1.1 --- a/test/testshape.c	Thu Aug 12 18:17:15 2010 -0400
     1.2 +++ b/test/testshape.c	Sat Aug 14 16:14:36 2010 -0400
     1.3 @@ -8,7 +8,7 @@
     1.4  #define SHAPED_WINDOW_Y 150
     1.5  #define SHAPED_WINDOW_DIMENSION 640
     1.6  
     1.7 -#define TICK_INTERVAL 1000/60
     1.8 +#define TICK_INTERVAL 1000/10
     1.9  
    1.10  typedef struct LoadedPicture {
    1.11  	SDL_Surface *surface;
    1.12 @@ -32,11 +32,11 @@
    1.13  static Uint32 next_time;
    1.14  
    1.15  Uint32 time_left() {
    1.16 -	Uint32 now = SDL_GetTicks();
    1.17 -	if(next_time <= now)
    1.18 -		return 0;
    1.19 +    Uint32 now = SDL_GetTicks();
    1.20 +    if(next_time <= now)
    1.21 +        return 0;
    1.22  	else
    1.23 -		return next_time - now;
    1.24 +        return next_time - now;
    1.25  }
    1.26  
    1.27  int main(int argc,char** argv) {