# HG changeset patch # User Darren Alton # Date 1218885368 0 # Node ID cd8978f47849b4eedfe5fbb12aa8eb891c8245f4 # Parent 87cfb5fde5db9abbd095622abf196dcc40ceed5c Minor cleanups in renderer. diff -r 87cfb5fde5db -r cd8978f47849 src/video/nds/SDL_ndsrender.c --- 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."); diff -r 87cfb5fde5db -r cd8978f47849 test/nds-test-progs/general/source/main.c --- a/test/nds-test-progs/general/source/main.c Sat Aug 16 11:05:50 2008 +0000 +++ b/test/nds-test-progs/general/source/main.c Sat Aug 16 11:16:08 2008 +0000 @@ -28,7 +28,7 @@ puts(SDL_GetError()); return 1; } - puts("* initialized SDL\n"); + puts("* initialized SDL"); screen = SDL_SetVideoMode(256, 192, 15, SDL_SWSURFACE); if(!screen) { puts("# error setting video mode"); @@ -36,7 +36,7 @@ return 2; } screen->flags &= ~SDL_PREALLOC; - puts("* set video mode\n"); + puts("* set video mode"); stick = SDL_JoystickOpen(0); if(stick == NULL) { puts("# error opening joystick"); diff -r 87cfb5fde5db -r cd8978f47849 test/nds-test-progs/sprite2/source/testsprite2.c --- a/test/nds-test-progs/sprite2/source/testsprite2.c Sat Aug 16 11:05:50 2008 +0000 +++ b/test/nds-test-progs/sprite2/source/testsprite2.c Sat Aug 16 11:16:08 2008 +0000 @@ -4,6 +4,7 @@ #include #include #include +#include #include "common.h" #define NUM_SPRITES 100 @@ -148,7 +149,7 @@ int i, done; SDL_Event event; Uint32 then, now, frames; - + fatInitDefault(); /* Initialize parameters */ num_sprites = NUM_SPRITES;