Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
SDL will treat the functionality as unsupported if the functions aren…
Browse files Browse the repository at this point in the history
…'t filled in.
  • Loading branch information
slouken committed Mar 15, 2011
1 parent 6d95fe9 commit e48b63a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
4 changes: 0 additions & 4 deletions src/video/directfb/SDL_DirectFB_video.c
Expand Up @@ -133,10 +133,6 @@ DirectFB_CreateDevice(int devindex)
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;
Expand Down
14 changes: 0 additions & 14 deletions src/video/directfb/SDL_DirectFB_window.c
Expand Up @@ -489,20 +489,6 @@ DirectFB_GetWindowWMInfo(_THIS, SDL_Window * window,
}
}

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)
{
Expand Down
4 changes: 0 additions & 4 deletions src/video/directfb/SDL_DirectFB_window.h
Expand Up @@ -78,10 +78,6 @@ extern void DirectFB_DestroyWindow(_THIS, SDL_Window * window);
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 */
Expand Down

0 comments on commit e48b63a

Please sign in to comment.