# HG changeset patch # User Sam Lantinga # Date 1278920004 25200 # Node ID f78a602ac135a3490ff6a701a264f8cd8397e024 # Parent 9faebccfefb3a5eb1e30342c9afec373bd08958d Fixed compiler warning diff -r 9faebccfefb3 -r f78a602ac135 src/video/x11/SDL_x11window.c --- a/src/video/x11/SDL_x11window.c Thu Jul 08 23:07:34 2010 -0700 +++ b/src/video/x11/SDL_x11window.c Mon Jul 12 00:33:24 2010 -0700 @@ -289,9 +289,9 @@ Sint32 r, g, b; /* Is the colormap we need already registered in SDL? */ - if (colormap = + if ((colormap = X11_LookupColormap(data->display, - displaydata->screen, visual->visualid)) { + displaydata->screen, visual->visualid))) { xattr.colormap = colormap; /* printf("found existing colormap\n"); */ } else {