comparison src/video/x11/SDL_x11modes.c @ 2954:2c01dc6218cc

Whoops, we need to actually fill the colormap on DirectColor visuals. Temporarily disable them for now.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 02 Jan 2009 04:35:52 +0000
parents e38423786728
children ee331407574f
comparison
equal deleted inserted replaced
2953:33794586c53d 2954:2c01dc6218cc
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 /* We really don't need DirectColor visuals until we implement 35 /* We really don't need DirectColor visuals until we implement
36 * gamma ramps, but we'll leave it on for now to catch bugs */ 36 * gamma ramps, but we'll leave it on for now to catch bugs */
37 int use_directcolor = 1; 37 int use_directcolor = 0;
38 int depth; 38 int depth;
39 39
40 /* Look for an exact visual, if requested */ 40 /* Look for an exact visual, if requested */
41 if (visual_id) { 41 if (visual_id) {
42 XVisualInfo *vi, template; 42 XVisualInfo *vi, template;