comparison src/video/dummy/SDL_nullrender.c @ 2671:c3e7c0698cbb gsoc2008_nds

some changes to the dummy driver for debug purposes that should be reverted. most importantly, commenting out a check for an env. var.
author Darren Alton <dalton@stevens.edu>
date Thu, 12 Jun 2008 02:38:49 +0000
parents c785543d1843
children 24a6b3588eac
comparison
equal deleted inserted replaced
2670:6e4669f4db49 2671:c3e7c0698cbb
172 static int frame_number; 172 static int frame_number;
173 SDL_DUMMY_RenderData *data = 173 SDL_DUMMY_RenderData *data =
174 (SDL_DUMMY_RenderData *) renderer->driverdata; 174 (SDL_DUMMY_RenderData *) renderer->driverdata;
175 175
176 /* Send the data to the display */ 176 /* Send the data to the display */
177 if (SDL_getenv("SDL_VIDEO_DUMMY_SAVE_FRAMES")) { 177 /*if (SDL_getenv("SDL_VIDEO_DUMMY_SAVE_FRAMES")) */ {
178 char file[128]; 178 char file[128];
179 SDL_snprintf(file, sizeof(file), "SDL_window%d-%8.8d.bmp", 179 SDL_snprintf(file, sizeof(file), "SDL_window%d-%8.8d.bmp",
180 renderer->window, ++frame_number); 180 renderer->window, ++frame_number);
181 SDL_SaveBMP(data->screens[data->current_screen], file); 181 SDL_SaveBMP(data->screens[data->current_screen], file);
182 } 182 }
183 /*{
184 int i;
185 for (i = 0; i < 256 * 192; ++i)
186 ((Uint16 *)0x6800000)[i]
187 = ((Uint16 *)(data->screens[data->current_screen]->pixels))[i];
188 }*/
183 189
184 /* Update the flipping chain, if any */ 190 /* Update the flipping chain, if any */
185 if (renderer->info.flags & SDL_RENDERER_PRESENTFLIP2) { 191 if (renderer->info.flags & SDL_RENDERER_PRESENTFLIP2) {
186 data->current_screen = (data->current_screen + 1) % 2; 192 data->current_screen = (data->current_screen + 1) % 2;
187 } else if (renderer->info.flags & SDL_RENDERER_PRESENTFLIP3) { 193 } else if (renderer->info.flags & SDL_RENDERER_PRESENTFLIP3) {