Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

…lormap.
  • Loading branch information
slouken committed Oct 11, 2012
1 parent d755b57 commit ad7cbfbecc6e525c27da41e44027dfda0085d7ab
Showing with 7 additions and 5 deletions.
  1. +7 −5 src/video/x11/SDL_x11window.c
@@ -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);
}

0 comments on commit ad7cbfb

Please sign in to comment.