comparison src/video/x11/SDL_x11modes.c @ 2906:c4150600b3ae

/* FIXME FIXME FIXME * Window creation fails in the colormap code on DirectColor visuals: * XA_RGB_BEST_MAP not found and could not be created * I'm disabling this for now until Bob can look at it. We don't need * it until we implement the gamma fading using DirectColor RGB ramps */
author Sam Lantinga <slouken@libsdl.org>
date Mon, 22 Dec 2008 04:58:35 +0000
parents 36e312e0fac0
children ffdd533f7add
comparison
equal deleted inserted replaced
2905:d214e791c77c 2906:c4150600b3ae
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 int use_directcolor = 1; 35 /* FIXME FIXME FIXME
36 * Window creation fails in the colormap code on DirectColor visuals:
37 * XA_RGB_BEST_MAP not found and could not be created
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;
36 int depth; 42 int depth;
37 43
38 /* Look for an exact visual, if requested */ 44 /* Look for an exact visual, if requested */
39 if (visual_id) { 45 if (visual_id) {
40 XVisualInfo *vi, template; 46 XVisualInfo *vi, template;