From d0c97b98e477cfdf46ed7f36fd16c64f7943d551 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 17 Jan 2005 15:11:19 +0000 Subject: Committing Allegro -> SDL switch, hugely breaking the game. --- src/gui/setup.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/gui/setup.cpp') diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp index e9675ab3..bfb619c2 100644 --- a/src/gui/setup.cpp +++ b/src/gui/setup.cpp @@ -34,6 +34,7 @@ #include "radiobutton.h" #include "ok_dialog.h" #include "../main.h" +#include #ifndef WIN32 extern Sound sound; @@ -141,15 +142,17 @@ void Setup::action(const std::string& eventId) if (fsCheckBox->isMarked() && config.getValue("screen", 0) == 2) { config.setValue("screen", 1); - set_gfx_mode(GFX_AUTODETECT_FULLSCREEN, - modes[sel].height, modes[sel].width, 0, 0); + SDL_WM_ToggleFullScreen(SDL_GetVideoSurface()); + //set_gfx_mode(GFX_AUTODETECT_FULLSCREEN, + // modes[sel].height, modes[sel].width, 0, 0); } else if (!fsCheckBox->isMarked() && config.getValue("screen", 0) == 1) { config.setValue("screen", 2); - set_gfx_mode(GFX_AUTODETECT_WINDOWED, - modes[sel].height, modes[sel].width, 0, 0); + SDL_WM_ToggleFullScreen(SDL_GetVideoSurface()); + //set_gfx_mode(GFX_AUTODETECT_WINDOWED, + // modes[sel].height, modes[sel].width, 0, 0); } // Sound settings -- cgit v1.2.3-70-g09d2