Mercurial > sdl-ios-xcode
diff src/video/directfb/SDL_DirectFB_modes.c @ 5251:58265e606e4e
Window coordinates are in the global space and windows are not tied to a particular display.
Also added Ctrl-Enter keybinding to the test code to toggle fullscreen mode for testing.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 10 Feb 2011 14:44:25 -0800 |
parents | 164f20ba08eb |
children | b530ef003506 |
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_modes.c Thu Feb 10 14:36:09 2011 -0800 +++ b/src/video/directfb/SDL_DirectFB_modes.c Thu Feb 10 14:44:25 2011 -0800 @@ -135,7 +135,7 @@ * This has simply no effect. */ - SDL_VideoDisplay *display = window->display; + SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window); DFB_DisplayData *dispdata = (DFB_DisplayData *) display->driverdata; /* FIXME: should we handle the error */