Only install/uninstall the colormap if we've created a DirectColor colormap.

This commit is contained in:
Sam Lantinga 2012-10-11 14:43:13 -07:00
parent c0731b25b4
commit 89e0662973

View file

@ -993,11 +993,13 @@ X11_SetWindowFullscreenViaWM(_THIS, SDL_Window * window, SDL_VideoDisplay * _dis
X11_SetNetWMState(_this, data->xwindow, flags);
}
if( fullscreen ) {
XInstallColormap(display, data->colormap);
} else {
XUninstallColormap(display, data->colormap);
}
if (data->visual->class == DirectColor) {
if ( fullscreen ) {
XInstallColormap(display, data->colormap);
} else {
XUninstallColormap(display, data->colormap);
}
}
XFlush(display);
}