comparison src/video/dummy/SDL_nullrender.c @ 2673:24a6b3588eac gsoc2008_nds

Cleaned up and added joypad support from 1.2.9 NDS port. Also some minor video driver bugfixes.
author Darren Alton <dalton@stevens.edu>
date Thu, 19 Jun 2008 07:11:35 +0000
parents c3e7c0698cbb
children
comparison
equal deleted inserted replaced
2672:74ac057679d5 2673:24a6b3588eac
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 /*{ 183 /*{
184 int i; 184 int i;
185 for (i = 0; i < 256 * 192; ++i) 185 for (i = 0; i < 256 * 192; ++i)
186 ((Uint16 *)0x6800000)[i] 186 ((Uint16 *)0x6800000)[i]
187 = ((Uint16 *)(data->screens[data->current_screen]->pixels))[i]; 187 = ((Uint16 *)(data->screens[data->current_screen]->pixels))[i];
188 }*/ 188 } */
189 189
190 /* Update the flipping chain, if any */ 190 /* Update the flipping chain, if any */
191 if (renderer->info.flags & SDL_RENDERER_PRESENTFLIP2) { 191 if (renderer->info.flags & SDL_RENDERER_PRESENTFLIP2) {
192 data->current_screen = (data->current_screen + 1) % 2; 192 data->current_screen = (data->current_screen + 1) % 2;
193 } else if (renderer->info.flags & SDL_RENDERER_PRESENTFLIP3) { 193 } else if (renderer->info.flags & SDL_RENDERER_PRESENTFLIP3) {