src/video/x11/SDL_x11modes.c
changeset 2945 e38423786728
parent 2920 cdb01906cb7e
child 2954 2c01dc6218cc
equal deleted inserted replaced
2944:7dac01628a8b 2945:e38423786728
    30 
    30 
    31 static int
    31 static int
    32 get_visualinfo(Display * display, int screen, XVisualInfo * vinfo)
    32 get_visualinfo(Display * display, int screen, XVisualInfo * vinfo)
    33 {
    33 {
    34     const char *visual_id = SDL_getenv("SDL_VIDEO_X11_VISUALID");
    34     const char *visual_id = SDL_getenv("SDL_VIDEO_X11_VISUALID");
    35     /* FIXME FIXME FIXME
    35     /* We really don't need DirectColor visuals until we implement
    36      * Window creation fails in the colormap code on DirectColor visuals:
    36      * gamma ramps, but we'll leave it on for now to catch bugs */
    37      *      XA_RGB_BEST_MAP not found and could not be created
    37     int use_directcolor = 1;
    38      * I'm disabling this for now until Bob can look at it.  We don't need
       
    39      * it until we implement the gamma fading using DirectColor RGB ramps
       
    40      */
       
    41     int use_directcolor = 0;
       
    42     int depth;
    38     int depth;
    43 
    39 
    44     /* Look for an exact visual, if requested */
    40     /* Look for an exact visual, if requested */
    45     if (visual_id) {
    41     if (visual_id) {
    46         XVisualInfo *vi, template;
    42         XVisualInfo *vi, template;