changeset 4505:f78a602ac135

Fixed compiler warning
author Sam Lantinga <slouken@libsdl.org>
date Mon, 12 Jul 2010 00:33:24 -0700
parents 9faebccfefb3
children b577f47379f3
files src/video/x11/SDL_x11window.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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 {