comparison src/video/photon/SDL_photon_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 8c5fb2a3b11d
children 64ce267332c6
comparison
equal deleted inserted replaced
3499:4cf8a1423d57 3500:4b594623401b
274 photon_addrenderdriver(_THIS) 274 photon_addrenderdriver(_THIS)
275 { 275 {
276 uint32_t it; 276 uint32_t it;
277 277
278 for (it = 0; it < _this->num_displays; it++) { 278 for (it = 0; it < _this->num_displays; it++) {
279 SDL_AddRenderDriver(it, &photon_renderdriver); 279 SDL_AddRenderDriver(&_this->displays[it], &photon_renderdriver);
280 } 280 }
281 } 281 }
282 282
283 /****************************************************************************/ 283 /****************************************************************************/
284 /* Renderer helper functions */ 284 /* Renderer helper functions */