Mercurial > sdl-ios-xcode
comparison src/video/directfb/SDL_DirectFB_video.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 | 62d4992e5a92 |
children | f7b03b6838cb |
comparison
equal
deleted
inserted
replaced
3499:4cf8a1423d57 | 3500:4b594623401b |
---|---|
54 static void DirectFB_VideoQuit(_THIS); | 54 static void DirectFB_VideoQuit(_THIS); |
55 | 55 |
56 static int DirectFB_Available(void); | 56 static int DirectFB_Available(void); |
57 static SDL_VideoDevice *DirectFB_CreateDevice(int devindex); | 57 static SDL_VideoDevice *DirectFB_CreateDevice(int devindex); |
58 | 58 |
59 #if 0 | |
60 static int DirectFB_SetDisplayGammaRamp(_THIS, Uint16 * ramp); | |
61 static int DirectFB_GetDisplayGammaRamp(_THIS, Uint16 * ramp); | |
62 #endif | |
63 | |
64 VideoBootStrap DirectFB_bootstrap = { | 59 VideoBootStrap DirectFB_bootstrap = { |
65 "directfb", "DirectFB", | 60 "directfb", "DirectFB", |
66 DirectFB_Available, DirectFB_CreateDevice | 61 DirectFB_Available, DirectFB_CreateDevice |
67 }; | 62 }; |
68 | 63 |
101 /* Set the function pointers */ | 96 /* Set the function pointers */ |
102 device->VideoInit = DirectFB_VideoInit; | 97 device->VideoInit = DirectFB_VideoInit; |
103 device->VideoQuit = DirectFB_VideoQuit; | 98 device->VideoQuit = DirectFB_VideoQuit; |
104 device->GetDisplayModes = DirectFB_GetDisplayModes; | 99 device->GetDisplayModes = DirectFB_GetDisplayModes; |
105 device->SetDisplayMode = DirectFB_SetDisplayMode; | 100 device->SetDisplayMode = DirectFB_SetDisplayMode; |
106 #if 0 | |
107 device->SetDisplayGammaRamp = DirectFB_SetDisplayGammaRamp; | |
108 device->GetDisplayGammaRamp = DirectFB_GetDisplayGammaRamp; | |
109 #else | |
110 device->SetDisplayGammaRamp = NULL; | |
111 device->GetDisplayGammaRamp = NULL; | |
112 #endif | |
113 device->PumpEvents = DirectFB_PumpEventsWindow; | 101 device->PumpEvents = DirectFB_PumpEventsWindow; |
114 device->CreateWindow = DirectFB_CreateWindow; | 102 device->CreateWindow = DirectFB_CreateWindow; |
115 device->CreateWindowFrom = DirectFB_CreateWindowFrom; | 103 device->CreateWindowFrom = DirectFB_CreateWindowFrom; |
116 device->SetWindowTitle = DirectFB_SetWindowTitle; | 104 device->SetWindowTitle = DirectFB_SetWindowTitle; |
117 device->SetWindowIcon = DirectFB_SetWindowIcon; | 105 device->SetWindowIcon = DirectFB_SetWindowIcon; |
298 DirectFB_GL_Shutdown(_this); | 286 DirectFB_GL_Shutdown(_this); |
299 #endif | 287 #endif |
300 | 288 |
301 devdata->initialized = 0; | 289 devdata->initialized = 0; |
302 } | 290 } |
303 | |
304 #if 0 | |
305 static int | |
306 DirectFB_SetDisplayGammaRamp(_THIS, Uint16 * ramp) | |
307 { | |
308 return -1; | |
309 } | |
310 | |
311 static int | |
312 DirectFB_GetDisplayGammaRamp(_THIS, Uint16 * ramp) | |
313 { | |
314 return -1; | |
315 } | |
316 #endif |