Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Merged Ryan's changes
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 11, 2012
2 parents 661fe79 + ad7cbfb commit e7cbb19
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/video/x11/SDL_x11window.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit e7cbb19

Please sign in to comment.