diff 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
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_video.c	Mon Nov 30 21:04:25 2009 +0000
+++ b/src/video/directfb/SDL_DirectFB_video.c	Tue Dec 01 05:57:15 2009 +0000
@@ -56,11 +56,6 @@
 static int DirectFB_Available(void);
 static SDL_VideoDevice *DirectFB_CreateDevice(int devindex);
 
-#if 0
-static int DirectFB_SetDisplayGammaRamp(_THIS, Uint16 * ramp);
-static int DirectFB_GetDisplayGammaRamp(_THIS, Uint16 * ramp);
-#endif
-
 VideoBootStrap DirectFB_bootstrap = {
     "directfb", "DirectFB",
     DirectFB_Available, DirectFB_CreateDevice
@@ -103,13 +98,6 @@
     device->VideoQuit = DirectFB_VideoQuit;
     device->GetDisplayModes = DirectFB_GetDisplayModes;
     device->SetDisplayMode = DirectFB_SetDisplayMode;
-#if 0
-    device->SetDisplayGammaRamp = DirectFB_SetDisplayGammaRamp;
-    device->GetDisplayGammaRamp = DirectFB_GetDisplayGammaRamp;
-#else
-    device->SetDisplayGammaRamp = NULL;
-    device->GetDisplayGammaRamp = NULL;
-#endif
     device->PumpEvents = DirectFB_PumpEventsWindow;
     device->CreateWindow = DirectFB_CreateWindow;
     device->CreateWindowFrom = DirectFB_CreateWindowFrom;
@@ -300,17 +288,3 @@
 
     devdata->initialized = 0;
 }
-
-#if 0
-static int
-DirectFB_SetDisplayGammaRamp(_THIS, Uint16 * ramp)
-{
-    return -1;
-}
-
-static int
-DirectFB_GetDisplayGammaRamp(_THIS, Uint16 * ramp)
-{
-    return -1;
-}
-#endif