comparison test/nds-test-progs/sprite/source/testsprite.c @ 2698:e1da92da346c gsoc2008_nds

Clean up.
author Darren Alton <dalton@stevens.edu>
date Wed, 27 Aug 2008 04:23:38 +0000
parents c1c7cb1b5a47
children
comparison
equal deleted inserted replaced
2697:c9121b04cffa 2698:e1da92da346c
161 Uint32 background; 161 Uint32 background;
162 int i, done; 162 int i, done;
163 SDL_Event event; 163 SDL_Event event;
164 Uint32 then, now, frames; 164 Uint32 then, now, frames;
165 165
166 consoleDemoInit(); puts("Hello world! Initializing FAT..."); 166 consoleDemoInit();
167 puts("Hello world! Initializing FAT...");
167 fatInitDefault(); 168 fatInitDefault();
168 /* Initialize SDL */ 169 /* Initialize SDL */
169 if (SDL_Init(SDL_INIT_VIDEO) < 0) { 170 if (SDL_Init(SDL_INIT_VIDEO) < 0) {
170 fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError()); 171 fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError());
171 return (1); 172 return (1);
172 } 173 }
173 puts("* initialized SDL"); 174 puts("* initialized SDL");
174 175
175 numsprites = NUM_SPRITES; 176 numsprites = NUM_SPRITES;
176 videoflags = SDL_SWSURFACE /*| SDL_ANYFORMAT*/; 177 videoflags = SDL_SWSURFACE /*| SDL_ANYFORMAT */ ;
177 width = 256; 178 width = 256;
178 height = 192; 179 height = 192;
179 video_bpp = 15; 180 video_bpp = 15;
180 debug_flip = 0; 181 debug_flip = 0;
181 while (argc > 1) { 182 while (argc > 1) {