From 79c488cb6c026981d8beea0cae231974abd3c998 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 28 Feb 2004 13:00:19 +0000 Subject: fix mouse redraw issue when toggling fullscreen mode (visible if one mode is 555 and the other 565) svn-id: r13088 --- backends/sdl/sdl.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'backends/sdl') diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp index 5e231e07a6..1afba41d50 100644 --- a/backends/sdl/sdl.cpp +++ b/backends/sdl/sdl.cpp @@ -369,6 +369,10 @@ void OSystem_SDL::setFullscreenMode(bool enable) { if (_full_screen != enable) { assert(_hwscreen != 0); _full_screen ^= true; + + if (_mouseDrawn) + undraw_mouse(); + #if defined(MACOSX) && !SDL_VERSION_ATLEAST(1, 2, 6) // On OS X, SDL_WM_ToggleFullScreen is currently not implemented. Worse, // before SDL 1.2.6 it always returned -1 (which would indicate a -- cgit v1.2.3