comparison src/video/x11/SDL_x11window.c @ 4505:f78a602ac135

Fixed compiler warning
author Sam Lantinga <slouken@libsdl.org>
date Mon, 12 Jul 2010 00:33:24 -0700
parents 3e69e077cb95
children 6f8175ad0335
comparison
equal deleted inserted replaced
4504:9faebccfefb3 4505:f78a602ac135
287 Sint32 rmask, gmask, bmask; 287 Sint32 rmask, gmask, bmask;
288 Sint32 rshift, gshift, bshift; 288 Sint32 rshift, gshift, bshift;
289 Sint32 r, g, b; 289 Sint32 r, g, b;
290 290
291 /* Is the colormap we need already registered in SDL? */ 291 /* Is the colormap we need already registered in SDL? */
292 if (colormap = 292 if ((colormap =
293 X11_LookupColormap(data->display, 293 X11_LookupColormap(data->display,
294 displaydata->screen, visual->visualid)) { 294 displaydata->screen, visual->visualid))) {
295 xattr.colormap = colormap; 295 xattr.colormap = colormap;
296 /* printf("found existing colormap\n"); */ 296 /* printf("found existing colormap\n"); */
297 } else { 297 } else {
298 /* The colormap is not known to SDL so we will create it */ 298 /* The colormap is not known to SDL so we will create it */
299 colormap = XCreateColormap(data->display, 299 colormap = XCreateColormap(data->display,