test/testsprite2.c
changeset 9922 b066d5fd5fa7
parent 9619 b94b6d0bff0f
child 9998 f67cf37e9cd4
     1.1 --- a/test/testsprite2.c	Wed Nov 25 21:31:02 2015 +0100
     1.2 +++ b/test/testsprite2.c	Wed Nov 25 21:39:28 2015 +0100
     1.3 @@ -203,13 +203,13 @@
     1.4              velocity = &velocities[i];
     1.5              position->x += velocity->x;
     1.6              if ((position->x < 0) || (position->x >= (viewport.w - sprite_w))) {
     1.7 -            	velocity->x = -velocity->x;
     1.8 -            	position->x += velocity->x;
     1.9 +                velocity->x = -velocity->x;
    1.10 +                position->x += velocity->x;
    1.11              }
    1.12              position->y += velocity->y;
    1.13              if ((position->y < 0) || (position->y >= (viewport.h - sprite_h))) {
    1.14 -            	velocity->y = -velocity->y;
    1.15 -            	position->y += velocity->y;
    1.16 +                velocity->y = -velocity->y;
    1.17 +                position->y += velocity->y;
    1.18              }
    1.19  
    1.20          }
    1.21 @@ -227,7 +227,7 @@
    1.22      /* Draw sprites */
    1.23      for (i = 0; i < num_sprites; ++i) {
    1.24          position = &positions[i];
    1.25 -		
    1.26 +
    1.27          /* Blit the sprite onto the screen */
    1.28          SDL_RenderCopy(renderer, sprite, NULL, position);
    1.29      }
    1.30 @@ -263,7 +263,7 @@
    1.31  {
    1.32      int i;
    1.33      Uint32 then, now, frames;
    1.34 -	Uint64 seed;
    1.35 +    Uint64 seed;
    1.36      const char *icon = "icon.bmp";
    1.37  
    1.38      /* Initialize parameters */