From 2ea922e96559d8ac46320f9ca55d23831bd6c2e5 Mon Sep 17 00:00:00 2001 From: johns <> Date: Sun, 31 Mar 2002 14:09:36 +0000 Subject: [PATCH] Switch to full screen and back (ALT-F) now works also under windows. --- doc/ChangeLog.html | 5 +++++ src/video/sdl.cpp | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/ChangeLog.html b/doc/ChangeLog.html index 0f00239b5..af847b35b 100644 --- a/doc/ChangeLog.html +++ b/doc/ChangeLog.html @@ -756,6 +756,11 @@ <LI>Renamed FrameCounter to GameCycle. <LI>Network timeout didn't block mouse movement and scrolling. <LI>Removed WaitAndKeepSync from GameLoop. + <LI>Switch to full screen and back (ALT-F) now works also under windows. + <LI>Fixed some video locking problems. + <LI>Fixed bug #537142: Crashes with flame shield attacking buildings. + <LI>New video frame and game simulation timing code written. Closes bug + #205006. <LI>+++ </UL> </UL> diff --git a/src/video/sdl.cpp b/src/video/sdl.cpp index 1872d7762..cc69d893a 100644 --- a/src/video/sdl.cpp +++ b/src/video/sdl.cpp @@ -858,7 +858,7 @@ global void ToggleGrabMouse(void) */ global void ToggleFullScreen(void) { -#ifndef USE_WIN32 +#ifdef USE_WIN32 long framesize; void *pixels; SDL_Color *palette; @@ -927,6 +927,8 @@ global void ToggleFullScreen(void) SDL_SetClipRect(Screen, &clip); + Invalidate(); // Update display + return; #else SDL_WM_ToggleFullScreen(Screen);