SDL will treat the functionality as unsupported if the functions aren't filled in.
authorSam Lantinga <slouken@libsdl.org>
Mon, 14 Mar 2011 23:14:51 -0700
changeset 5489 e0c63a55b67d
parent 5488 c20436fd5627
child 5490 352473883732
SDL will treat the functionality as unsupported if the functions aren't filled in.
src/video/directfb/SDL_DirectFB_video.c
src/video/directfb/SDL_DirectFB_window.c
src/video/directfb/SDL_DirectFB_window.h
--- a/src/video/directfb/SDL_DirectFB_video.c	Mon Mar 14 23:13:33 2011 -0700
+++ b/src/video/directfb/SDL_DirectFB_video.c	Mon Mar 14 23:14:51 2011 -0700
@@ -133,10 +133,6 @@
     device->DestroyWindow = DirectFB_DestroyWindow;
     device->GetWindowWMInfo = DirectFB_GetWindowWMInfo;
 
-    /* Not supported by DFB, for completeness */
-    device->SetWindowGammaRamp = DirectFB_SetWindowGammaRamp;
-    device->GetWindowGammaRamp = DirectFB_GetWindowGammaRamp;
-
 #if SDL_DIRECTFB_OPENGL
     device->GL_LoadLibrary = DirectFB_GL_LoadLibrary;
     device->GL_GetProcAddress = DirectFB_GL_GetProcAddress;
--- a/src/video/directfb/SDL_DirectFB_window.c	Mon Mar 14 23:13:33 2011 -0700
+++ b/src/video/directfb/SDL_DirectFB_window.c	Mon Mar 14 23:14:51 2011 -0700
@@ -489,20 +489,6 @@
     }
 }
 
-int
-DirectFB_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp)
-{
-    SDL_Unsupported();
-    return -1;
-}
-
-int
-DirectFB_GetWindowGammaRamp(_THIS, SDL_Window * window, Uint16 * ramp)
-{
-    SDL_Unsupported();
-    return -1;
-}
-
 void
 DirectFB_AdjustWindowSurface(SDL_Window * window)
 {
--- a/src/video/directfb/SDL_DirectFB_window.h	Mon Mar 14 23:13:33 2011 -0700
+++ b/src/video/directfb/SDL_DirectFB_window.h	Mon Mar 14 23:14:51 2011 -0700
@@ -78,10 +78,6 @@
 extern SDL_bool DirectFB_GetWindowWMInfo(_THIS, SDL_Window * window,
                                          struct SDL_SysWMinfo *info);
 
-extern int DirectFB_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp);
-extern int DirectFB_GetWindowGammaRamp(_THIS, SDL_Window * window, Uint16 * ramp);
-
-
 extern void DirectFB_AdjustWindowSurface(SDL_Window * window);
 
 #endif /* _SDL_directfb_window_h */