mirror of
https://github.com/yawut/SDL.git
synced 2026-07-08 04:36:07 -05:00
Fix Colormap when using X11_SetWindowFullscreenViaWM() path.
This was needed to get X11_SetWindowGammaRamp() working. Sam points out that there is an issue right now where colormaps will only work with fullscreen windows, and we may want to set this when getting input focus for windowed apps.
This commit is contained in:
parent
d6da0196c1
commit
4e4ea5fb3a
1
TODO
1
TODO
|
|
@ -6,6 +6,7 @@
|
|||
* Write automated test case for multi-draw APIs
|
||||
* Implement assertion code on iPhone
|
||||
* Add __WINDOWS__ in addition to __WIN32__
|
||||
* Write test for fullscreen gamma to check X11 colormap handling
|
||||
|
||||
* Check 1.2 revisions:
|
||||
3554 - Need to resolve semantics for locking keys on different platforms
|
||||
|
|
|
|||
|
|
@ -992,6 +992,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);
|
||||
}
|
||||
|
||||
XFlush(display);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user