diff options
author | Max Horn | 2004-02-28 13:00:19 +0000 |
---|---|---|
committer | Max Horn | 2004-02-28 13:00:19 +0000 |
commit | 79c488cb6c026981d8beea0cae231974abd3c998 (patch) | |
tree | 7ebf9da3fa9e4f25e8e66b1dc74d9ee9979aedad /backends | |
parent | c6752cccf5186fb04c97e2bb4a64c52fc9447073 (diff) | |
download | scummvm-rg350-79c488cb6c026981d8beea0cae231974abd3c998.tar.gz scummvm-rg350-79c488cb6c026981d8beea0cae231974abd3c998.tar.bz2 scummvm-rg350-79c488cb6c026981d8beea0cae231974abd3c998.zip |
fix mouse redraw issue when toggling fullscreen mode (visible if one mode is 555 and the other 565)
svn-id: r13088
Diffstat (limited to 'backends')
-rw-r--r-- | backends/sdl/sdl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 |