test/testsprite2.c
changeset 1903 f132024010be
parent 1895 c121d94672cb
child 1904 1a713f9d1f71
--- a/test/testsprite2.c	Thu Jul 13 08:15:35 2006 +0000
+++ b/test/testsprite2.c	Fri Jul 14 06:40:53 2006 +0000
@@ -5,7 +5,7 @@
 
 #include "SDL.h"
 
-#define NUM_WINDOWS 4
+#define NUM_WINDOWS 1
 #define WINDOW_W    640
 #define WINDOW_H    480
 #define NUM_SPRITES	100
@@ -91,10 +91,13 @@
 
     /* Move the sprite, bounce at the wall, and draw */
     n = 0;
-    for (i = 0; i < num_sprites; ++i) {
-        position = &positions[i];
-        SDL_RenderFill(position, BACKGROUND);
-    }
+    SDL_RenderFill(NULL, BACKGROUND);
+    /*
+       for (i = 0; i < num_sprites; ++i) {
+       position = &positions[i];
+       SDL_RenderFill(position, BACKGROUND);
+       }
+     */
     for (i = 0; i < num_sprites; ++i) {
         position = &positions[i];
         velocity = &velocities[i];
@@ -237,7 +240,8 @@
                 }
                 break;
             case SDL_KEYDOWN:
-                /* Any keypress quits the app... */
+                ///* Any keypress quits the app... */
+                break;
             case SDL_QUIT:
                 done = 1;
                 break;