Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_render.c Mon Nov 30 21:04:25 2009 +0000 +++ b/src/video/directfb/SDL_DirectFB_render.c Tue Dec 01 05:57:15 2009 +0000 @@ -234,7 +234,7 @@ { int i; for (i = 0; i < _this->num_displays; i++) - SDL_AddRenderDriver(i, &DirectFB_RenderDriver); + SDL_AddRenderDriver(&_this->displays[i], &DirectFB_RenderDriver); } static int @@ -264,6 +264,8 @@ SDL_DFB_CHECKERR(surfpal->SetEntries(surfpal, entries, ncolors, 0)); return 0; error: +#else + SDL_Unsupported(); #endif return -1; }