Merge pull request #66 from vanfanel/master
Hide mouse cursor when in fullscreen mode.
This commit is contained in:
commit
b9fcf83b84
|
@ -130,9 +130,11 @@ static void gfx_sdl_init(void) {
|
|||
if (configFullscreen) {
|
||||
wnd = SDL_CreateWindow(window_title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
|
||||
sdl_displaymode.w, sdl_displaymode.h, window_flags);
|
||||
SDL_ShowCursor(SDL_DISABLE);
|
||||
} else {
|
||||
wnd = SDL_CreateWindow(window_title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
|
||||
DESIRED_SCREEN_WIDTH, DESIRED_SCREEN_HEIGHT, window_flags);
|
||||
SDL_ShowCursor(SDL_ENABLE);
|
||||
}
|
||||
|
||||
SDL_GL_CreateContext(wnd);
|
||||
|
|
Loading…
Reference in New Issue