SDL will treat the functionality as unsupported if the functions aren't filled in.
authorSam Lantinga
Mon, 14 Mar 2011 23:14:51 -0700
changeset 5489e0c63a55b67d
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
     1.1 --- a/src/video/directfb/SDL_DirectFB_video.c	Mon Mar 14 23:13:33 2011 -0700
     1.2 +++ b/src/video/directfb/SDL_DirectFB_video.c	Mon Mar 14 23:14:51 2011 -0700
     1.3 @@ -133,10 +133,6 @@
     1.4      device->DestroyWindow = DirectFB_DestroyWindow;
     1.5      device->GetWindowWMInfo = DirectFB_GetWindowWMInfo;
     1.6  
     1.7 -    /* Not supported by DFB, for completeness */
     1.8 -    device->SetWindowGammaRamp = DirectFB_SetWindowGammaRamp;
     1.9 -    device->GetWindowGammaRamp = DirectFB_GetWindowGammaRamp;
    1.10 -
    1.11  #if SDL_DIRECTFB_OPENGL
    1.12      device->GL_LoadLibrary = DirectFB_GL_LoadLibrary;
    1.13      device->GL_GetProcAddress = DirectFB_GL_GetProcAddress;
     2.1 --- a/src/video/directfb/SDL_DirectFB_window.c	Mon Mar 14 23:13:33 2011 -0700
     2.2 +++ b/src/video/directfb/SDL_DirectFB_window.c	Mon Mar 14 23:14:51 2011 -0700
     2.3 @@ -489,20 +489,6 @@
     2.4      }
     2.5  }
     2.6  
     2.7 -int
     2.8 -DirectFB_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp)
     2.9 -{
    2.10 -    SDL_Unsupported();
    2.11 -    return -1;
    2.12 -}
    2.13 -
    2.14 -int
    2.15 -DirectFB_GetWindowGammaRamp(_THIS, SDL_Window * window, Uint16 * ramp)
    2.16 -{
    2.17 -    SDL_Unsupported();
    2.18 -    return -1;
    2.19 -}
    2.20 -
    2.21  void
    2.22  DirectFB_AdjustWindowSurface(SDL_Window * window)
    2.23  {
     3.1 --- a/src/video/directfb/SDL_DirectFB_window.h	Mon Mar 14 23:13:33 2011 -0700
     3.2 +++ b/src/video/directfb/SDL_DirectFB_window.h	Mon Mar 14 23:14:51 2011 -0700
     3.3 @@ -78,10 +78,6 @@
     3.4  extern SDL_bool DirectFB_GetWindowWMInfo(_THIS, SDL_Window * window,
     3.5                                           struct SDL_SysWMinfo *info);
     3.6  
     3.7 -extern int DirectFB_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp);
     3.8 -extern int DirectFB_GetWindowGammaRamp(_THIS, SDL_Window * window, Uint16 * ramp);
     3.9 -
    3.10 -
    3.11  extern void DirectFB_AdjustWindowSurface(SDL_Window * window);
    3.12  
    3.13  #endif /* _SDL_directfb_window_h */