comparison src/video/directfb/SDL_DirectFB_render.c @ 3500:4b594623401b

Work in progress on multi-display support: * Added display parameter to many internal functions so video modes can be set on displays that aren't the public current one. * The fullscreen mode is associated with fullscreen windows - not displays, so different windows more naturally have a mode associated with them based on their width and height. It's no longer necessary to specify a fullscreen mode, a default one will be picked automatically for fullscreen windows.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 01 Dec 2009 05:57:15 +0000
parents b8d313de8a65
children 83518f8fcd61
comparison
equal deleted inserted replaced
3499:4cf8a1423d57 3500:4b594623401b
232 void 232 void
233 DirectFB_AddRenderDriver(_THIS) 233 DirectFB_AddRenderDriver(_THIS)
234 { 234 {
235 int i; 235 int i;
236 for (i = 0; i < _this->num_displays; i++) 236 for (i = 0; i < _this->num_displays; i++)
237 SDL_AddRenderDriver(i, &DirectFB_RenderDriver); 237 SDL_AddRenderDriver(&_this->displays[i], &DirectFB_RenderDriver);
238 } 238 }
239 239
240 static int 240 static int
241 DisplayPaletteChanged(void *userdata, SDL_Palette * palette) 241 DisplayPaletteChanged(void *userdata, SDL_Palette * palette)
242 { 242 {
262 entries[i].a = palette->colors[i].unused; 262 entries[i].a = palette->colors[i].unused;
263 } 263 }
264 SDL_DFB_CHECKERR(surfpal->SetEntries(surfpal, entries, ncolors, 0)); 264 SDL_DFB_CHECKERR(surfpal->SetEntries(surfpal, entries, ncolors, 0));
265 return 0; 265 return 0;
266 error: 266 error:
267 #else
268 SDL_Unsupported();
267 #endif 269 #endif
268 return -1; 270 return -1;
269 } 271 }
270 272
271 273