Fix a windows sdl bug where starting in fullscreen then switching to window mode showed the sdl cursor.

This commit is contained in:
jsalmon3 2002-04-11 03:41:22 +00:00
parent 7e1c367d66
commit 9dc63edb42

View file

@ -942,6 +942,13 @@ global void ToggleFullScreen(void)
}
}
#ifdef USE_WIN32
// Windows shows the SDL cursor when starting in fullscreen mode
// then switching to window mode. This hides the cursor again.
SDL_ShowCursor(SDL_ENABLE);
SDL_ShowCursor(SDL_DISABLE);
#endif
SDL_LockSurface(Screen);
memcpy(Screen->pixels, pixels, framesize);
free(pixels);