src/video/x11/SDL_x11gamma.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 15 Dec 2009 08:11:06 +0000
changeset 3565 f43c8f688f77
parent 3500 4b594623401b
child 3697 f7b03b6838cb
permissions -rw-r--r--
Fixed bug #906

Added better error reporting for OpenGL context creation failing.
bob@2162
     1
/*
bob@2162
     2
    SDL - Simple DirectMedia Layer
slouken@2859
     3
    Copyright (C) 1997-2009 Sam Lantinga
bob@2162
     4
bob@2162
     5
    This library is free software; you can redistribute it and/or
bob@2162
     6
    modify it under the terms of the GNU Lesser General Public
bob@2162
     7
    License as published by the Free Software Foundation; either
bob@2162
     8
    version 2.1 of the License, or (at your option) any later version.
bob@2162
     9
bob@2162
    10
    This library is distributed in the hope that it will be useful,
bob@2162
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
bob@2162
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
bob@2162
    13
    Lesser General Public License for more details.
bob@2162
    14
bob@2162
    15
    You should have received a copy of the GNU Lesser General Public
bob@2162
    16
    License along with this library; if not, write to the Free Software
bob@2162
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
bob@2162
    18
bob@2162
    19
    Sam Lantinga
bob@2162
    20
    slouken@libsdl.org
bob@2162
    21
*/
bob@2162
    22
#include "SDL_config.h"
bob@2162
    23
bob@2162
    24
#ifndef _SDL_x11gamma_h
bob@2162
    25
#define _SDL_x11gamma_h
bob@2162
    26
bob@2214
    27
extern Colormap X11_LookupColormap(Display * display, int scrNum,
bob@2214
    28
                                   VisualID vid);
bob@2213
    29
extern void X11_TrackColormap(Display * display, int scrNum,
bob@3010
    30
                              Colormap colormap,
bob@3010
    31
                              Visual * visual, XColor * ramp);
bob@2213
    32
slouken@3500
    33
extern int X11_SetDisplayGammaRamp(_THIS, SDL_VideoDisplay * display, Uint16 * ramp);
slouken@3500
    34
extern int X11_GetDisplayGammaRamp(_THIS, SDL_VideoDisplay * display, Uint16 * ramp);
bob@2162
    35
bob@2162
    36
#endif