diff --git a/src/video/x11/SDL_x11window.c b/src/video/x11/SDL_x11window.c index 699740418..9fd1350e6 100644 --- a/src/video/x11/SDL_x11window.c +++ b/src/video/x11/SDL_x11window.c @@ -289,9 +289,9 @@ X11_CreateWindow(_THIS, SDL_Window * window) 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 {