Only install/uninstall the colormap if we've created a DirectColor colormap.
This commit is contained in:
parent
c0731b25b4
commit
89e0662973
1 changed files with 7 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue