Fixed compiler warning
authorSam Lantinga <slouken@libsdl.org>
Mon, 12 Jul 2010 00:33:24 -0700
changeset 4505 f78a602ac135
parent 4504 9faebccfefb3
child 4506 b577f47379f3
Fixed compiler warning
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 {