test/testsprite2.c
changeset 1903 f132024010be
parent 1895 c121d94672cb
child 1904 1a713f9d1f71
     1.1 --- a/test/testsprite2.c	Thu Jul 13 08:15:35 2006 +0000
     1.2 +++ b/test/testsprite2.c	Fri Jul 14 06:40:53 2006 +0000
     1.3 @@ -5,7 +5,7 @@
     1.4  
     1.5  #include "SDL.h"
     1.6  
     1.7 -#define NUM_WINDOWS 4
     1.8 +#define NUM_WINDOWS 1
     1.9  #define WINDOW_W    640
    1.10  #define WINDOW_H    480
    1.11  #define NUM_SPRITES	100
    1.12 @@ -91,10 +91,13 @@
    1.13  
    1.14      /* Move the sprite, bounce at the wall, and draw */
    1.15      n = 0;
    1.16 -    for (i = 0; i < num_sprites; ++i) {
    1.17 -        position = &positions[i];
    1.18 -        SDL_RenderFill(position, BACKGROUND);
    1.19 -    }
    1.20 +    SDL_RenderFill(NULL, BACKGROUND);
    1.21 +    /*
    1.22 +       for (i = 0; i < num_sprites; ++i) {
    1.23 +       position = &positions[i];
    1.24 +       SDL_RenderFill(position, BACKGROUND);
    1.25 +       }
    1.26 +     */
    1.27      for (i = 0; i < num_sprites; ++i) {
    1.28          position = &positions[i];
    1.29          velocity = &velocities[i];
    1.30 @@ -237,7 +240,8 @@
    1.31                  }
    1.32                  break;
    1.33              case SDL_KEYDOWN:
    1.34 -                /* Any keypress quits the app... */
    1.35 +                ///* Any keypress quits the app... */
    1.36 +                break;
    1.37              case SDL_QUIT:
    1.38                  done = 1;
    1.39                  break;