diff src/video/nds/SDL_ndsrender.c @ 2692:cd8978f47849 gsoc2008_nds

Minor cleanups in renderer.
author Darren Alton <dalton@stevens.edu>
date Sat, 16 Aug 2008 11:16:08 +0000
parents 87cfb5fde5db
children bae97b6ac32b
line wrap: on
line diff
--- a/src/video/nds/SDL_ndsrender.c	Sat Aug 16 11:05:50 2008 +0000
+++ b/src/video/nds/SDL_ndsrender.c	Sat Aug 16 11:16:08 2008 +0000
@@ -275,7 +275,6 @@
     NDS_OAM_Init(&(data->oam_copy)); /* init sprites. */
 
     TRACE("-NDS_CreateRenderer\n");
-    printf("renderer is %x\n", (u32)(renderer->UpdateTexture));
     return renderer;
 }
 
@@ -368,18 +367,6 @@
             txdat->vram_pixels = (u16*)(data->sub ?
                 BG_BMP_RAM_SUB(base) : BG_BMP_RAM(base));
 
-            /* TESTING PURPOSES ONLY!!!
-               shows that the texture is set up properly on the screen. */
-            for(i = 0; i < 256*192; ++i) {
-                txdat->vram_pixels[i] = RGB15(31,31,0)|0x8000;
-            }
-            printf("--one... two...\n");
-            for(i = 0; i < 120; ++i) {
-                swiWaitForVBlank();
-            }
-            for(i = 0; i < 256*192; ++i) {
-                txdat->vram_pixels[i] = 0;
-            }
             /*txdat->size = txdat->dim.pitch * texture->h;*/
         } else {
             SDL_SetError("Out of NDS backgrounds.");