diff options
Diffstat (limited to 'src/gallium')
| -rw-r--r-- | src/gallium/state_trackers/glx/xlib/glx_api.c | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c index 7e86e68b68..971b6e71cb 100644 --- a/src/gallium/state_trackers/glx/xlib/glx_api.c +++ b/src/gallium/state_trackers/glx/xlib/glx_api.c @@ -447,12 +447,12 @@ get_env_visual(Display *dpy, int scr, const char *varname)     sscanf( value, "%s %d", type, &depth ); -   if (_mesa_strcmp(type,"TrueColor")==0)          xclass = TrueColor; -   else if (_mesa_strcmp(type,"DirectColor")==0)   xclass = DirectColor; -   else if (_mesa_strcmp(type,"PseudoColor")==0)   xclass = PseudoColor; -   else if (_mesa_strcmp(type,"StaticColor")==0)   xclass = StaticColor; -   else if (_mesa_strcmp(type,"GrayScale")==0)     xclass = GrayScale; -   else if (_mesa_strcmp(type,"StaticGray")==0)    xclass = StaticGray; +   if (strcmp(type,"TrueColor")==0)          xclass = TrueColor; +   else if (strcmp(type,"DirectColor")==0)   xclass = DirectColor; +   else if (strcmp(type,"PseudoColor")==0)   xclass = PseudoColor; +   else if (strcmp(type,"StaticColor")==0)   xclass = StaticColor; +   else if (strcmp(type,"GrayScale")==0)     xclass = GrayScale; +   else if (strcmp(type,"StaticGray")==0)    xclass = StaticGray;     if (xclass>-1 && depth>0) {        vis = get_visual( dpy, scr, depth, xclass ); | 
