From c60c97b1d4e573a45f6bef030284e915bb5b83f6 Mon Sep 17 00:00:00 2001 From: Lionel Ulmer Date: Sun, 28 Apr 2002 06:51:23 +0000 Subject: Prevent debugger attach when we have switched to full-screen. svn-id: r4125 --- sdl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sdl.cpp') diff --git a/sdl.cpp b/sdl.cpp index 6f786bb18d..8ac4218d2a 100644 --- a/sdl.cpp +++ b/sdl.cpp @@ -904,7 +904,8 @@ uint32 OSystem_SDL::property(int param, uint32 value) { case PROP_TOGGLE_FULLSCREEN: _full_screen ^= true; - + g_scumm->_fullScreen = _full_screen; + if (!SDL_WM_ToggleFullScreen(sdl_hwscreen)) { /* if ToggleFullScreen fails, achieve the same effect with hotswap gfx mode */ hotswap_gfx_mode(); -- cgit v1.2.3