Added stubs for x11 gamma functions and enabled them in SDL_x11video.c
authorBob Pendleton <bob@pendleton.com>
Tue, 10 Jul 2007 14:44:20 +0000
changeset 21621d23870d8c49
parent 2161 e635db5b45ef
child 2163 5f96cf74b782
Added stubs for x11 gamma functions and enabled them in SDL_x11video.c
src/video/x11/SDL_x11gamma.c
src/video/x11/SDL_x11gamma.h
src/video/x11/SDL_x11video.c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/video/x11/SDL_x11gamma.c	Tue Jul 10 14:44:20 2007 +0000
     1.3 @@ -0,0 +1,37 @@
     1.4 +/*
     1.5 +    SDL - Simple DirectMedia Layer
     1.6 +    Copyright (C) 1997-2006 Sam Lantinga
     1.7 +
     1.8 +    This library is free software; you can redistribute it and/or
     1.9 +    modify it under the terms of the GNU Lesser General Public
    1.10 +    License as published by the Free Software Foundation; either
    1.11 +    version 2.1 of the License, or (at your option) any later version.
    1.12 +
    1.13 +    This library is distributed in the hope that it will be useful,
    1.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 +    Lesser General Public License for more details.
    1.17 +
    1.18 +    You should have received a copy of the GNU Lesser General Public
    1.19 +    License along with this library; if not, write to the Free Software
    1.20 +    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    1.21 +
    1.22 +    Sam Lantinga
    1.23 +    slouken@libsdl.org
    1.24 +*/
    1.25 +#include "SDL_config.h"
    1.26 +#include "../SDL_sysvideo.h"
    1.27 +#include "SDL_x11video.h"
    1.28 +
    1.29 +
    1.30 +int
    1.31 +X11_SetDisplayGammaRamp(_THIS, Uint16 * ramp)
    1.32 +{
    1.33 +    return (-1);
    1.34 +}
    1.35 +
    1.36 +int
    1.37 +X11_GetDisplayGammaRamp(_THIS, Uint16 * ramp)
    1.38 +{
    1.39 +    return -1;
    1.40 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/src/video/x11/SDL_x11gamma.h	Tue Jul 10 14:44:20 2007 +0000
     2.3 @@ -0,0 +1,30 @@
     2.4 +/*
     2.5 +    SDL - Simple DirectMedia Layer
     2.6 +    Copyright (C) 1997-2006 Sam Lantinga
     2.7 +
     2.8 +    This library is free software; you can redistribute it and/or
     2.9 +    modify it under the terms of the GNU Lesser General Public
    2.10 +    License as published by the Free Software Foundation; either
    2.11 +    version 2.1 of the License, or (at your option) any later version.
    2.12 +
    2.13 +    This library is distributed in the hope that it will be useful,
    2.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    2.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    2.16 +    Lesser General Public License for more details.
    2.17 +
    2.18 +    You should have received a copy of the GNU Lesser General Public
    2.19 +    License along with this library; if not, write to the Free Software
    2.20 +    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    2.21 +
    2.22 +    Sam Lantinga
    2.23 +    slouken@libsdl.org
    2.24 +*/
    2.25 +#include "SDL_config.h"
    2.26 +
    2.27 +#ifndef _SDL_x11gamma_h
    2.28 +#define _SDL_x11gamma_h
    2.29 +
    2.30 +extern int X11_SetDisplayGammaRamp(_THIS, Uint16 * ramp);
    2.31 +extern int X11_GetDisplayGammaRamp(_THIS, Uint16 * ramp);
    2.32 +
    2.33 +#endif
     3.1 --- a/src/video/x11/SDL_x11video.c	Tue Jul 10 05:29:56 2007 +0000
     3.2 +++ b/src/video/x11/SDL_x11video.c	Tue Jul 10 14:44:20 2007 +0000
     3.3 @@ -168,8 +168,8 @@
     3.4      device->VideoQuit = X11_VideoQuit;
     3.5      device->GetDisplayModes = X11_GetDisplayModes;
     3.6      device->SetDisplayMode = X11_SetDisplayMode;
     3.7 -//    device->SetDisplayGammaRamp = X11_SetDisplayGammaRamp;
     3.8 -//    device->GetDisplayGammaRamp = X11_GetDisplayGammaRamp;
     3.9 +    device->SetDisplayGammaRamp = X11_SetDisplayGammaRamp;
    3.10 +    device->GetDisplayGammaRamp = X11_GetDisplayGammaRamp;
    3.11      device->PumpEvents = X11_PumpEvents;
    3.12  
    3.13      device->CreateWindow = X11_CreateWindow;