Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/video/dummy/SDL_nullrender.c Tue Jun 10 06:57:57 2008 +0000 +++ b/src/video/dummy/SDL_nullrender.c Thu Jun 12 02:38:49 2008 +0000 @@ -174,12 +174,18 @@ (SDL_DUMMY_RenderData *) renderer->driverdata; /* Send the data to the display */ - if (SDL_getenv("SDL_VIDEO_DUMMY_SAVE_FRAMES")) { + /*if (SDL_getenv("SDL_VIDEO_DUMMY_SAVE_FRAMES")) */ { char file[128]; SDL_snprintf(file, sizeof(file), "SDL_window%d-%8.8d.bmp", renderer->window, ++frame_number); SDL_SaveBMP(data->screens[data->current_screen], file); } + /*{ + int i; + for (i = 0; i < 256 * 192; ++i) + ((Uint16 *)0x6800000)[i] + = ((Uint16 *)(data->screens[data->current_screen]->pixels))[i]; + }*/ /* Update the flipping chain, if any */ if (renderer->info.flags & SDL_RENDERER_PRESENTFLIP2) {