Switch to full screen and back (ALT-F) now works also under windows.

This commit is contained in:
johns 2002-03-31 14:09:36 +00:00
parent e93273afae
commit 2ea922e965
2 changed files with 8 additions and 1 deletions

View file

@ -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>

View file

@ -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);