diff test/testsprite2.c @ 1903:f132024010be

More of the Direct3D renderer is implemented, I'm not sure why it's not showing texture copies yet...
author Sam Lantinga <slouken@libsdl.org>
date Fri, 14 Jul 2006 06:40:53 +0000
parents c121d94672cb
children 1a713f9d1f71
line wrap: on
line diff
--- 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;