mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Merge pull request #66 from vanfanel/master
Hide mouse cursor when in fullscreen mode.
This commit is contained in:
commit
9feb67d8f3
1 changed files with 2 additions and 0 deletions
|
|
@ -130,9 +130,11 @@ static void gfx_sdl_init(void) {
|
||||||
if (configFullscreen) {
|
if (configFullscreen) {
|
||||||
wnd = SDL_CreateWindow(window_title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
|
wnd = SDL_CreateWindow(window_title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
|
||||||
sdl_displaymode.w, sdl_displaymode.h, window_flags);
|
sdl_displaymode.w, sdl_displaymode.h, window_flags);
|
||||||
|
SDL_ShowCursor(SDL_DISABLE);
|
||||||
} else {
|
} else {
|
||||||
wnd = SDL_CreateWindow(window_title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
|
wnd = SDL_CreateWindow(window_title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
|
||||||
DESIRED_SCREEN_WIDTH, DESIRED_SCREEN_HEIGHT, window_flags);
|
DESIRED_SCREEN_WIDTH, DESIRED_SCREEN_HEIGHT, window_flags);
|
||||||
|
SDL_ShowCursor(SDL_ENABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_GL_CreateContext(wnd);
|
SDL_GL_CreateContext(wnd);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue