diff 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
line wrap: on
line diff
--- 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 {