1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-24 12:30:17 +00:00

Hides the mouse cursor when in SDL fullscreen mode.

This commit is contained in:
Thomas Harte 2017-11-21 21:52:32 -05:00
parent 3b8cdd620c
commit dc4f58e40c

View File

@ -422,6 +422,7 @@ int main(int argc, char *argv[]) {
if(event.key.keysym.sym == SDLK_RETURN && (SDL_GetModState()&KMOD_ALT)) {
fullscreen_mode ^= SDL_WINDOW_FULLSCREEN_DESKTOP;
SDL_SetWindowFullscreen(window, fullscreen_mode);
SDL_ShowCursor((fullscreen_mode&SDL_WINDOW_FULLSCREEN_DESKTOP) ? SDL_DISABLE : SDL_ENABLE);
break;
}