comparison 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
comparison
equal deleted inserted replaced
5250:329d435f97f4 5251:58265e606e4e
133 /* FIXME: does not work on 1.0/1.2 with radeon driver 133 /* FIXME: does not work on 1.0/1.2 with radeon driver
134 * the approach did work with the matrox driver 134 * the approach did work with the matrox driver
135 * This has simply no effect. 135 * This has simply no effect.
136 */ 136 */
137 137
138 SDL_VideoDisplay *display = window->display; 138 SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
139 DFB_DisplayData *dispdata = (DFB_DisplayData *) display->driverdata; 139 DFB_DisplayData *dispdata = (DFB_DisplayData *) display->driverdata;
140 140
141 /* FIXME: should we handle the error */ 141 /* FIXME: should we handle the error */
142 if (dispdata->vidIDinuse) 142 if (dispdata->vidIDinuse)
143 SDL_DFB_CHECK(dispdata->vidlayer->SwitchContext(dispdata->vidlayer, 143 SDL_DFB_CHECK(dispdata->vidlayer->SwitchContext(dispdata->vidlayer,