From 8e1c3b592c9ebcec9e006bcc54eea55bfea4a864 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Sun, 14 Aug 2005 22:25:54 +0000 Subject: Removed guiGraphics global pointer and removed dependencies on gui.h in some places. --- src/gui/setup.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/setup.cpp') diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp index fa58d03b..4d00255b 100644 --- a/src/gui/setup.cpp +++ b/src/gui/setup.cpp @@ -30,7 +30,6 @@ #include "button.h" #include "checkbox.h" -#include "gui.h" #include "listbox.h" #include "ok_dialog.h" #include "scrollarea.h" @@ -44,6 +43,8 @@ #define SETUP_WIDTH 240 +extern Graphics *graphics; + ModeListModel::ModeListModel() { SDL_Rect **modes; @@ -247,10 +248,10 @@ void Setup::action(const std::string &eventId) bool fullscreen = fsCheckBox->isMarked(); if (fullscreen != (config.getValue("screen", 0) == 1)) { - if (!guiGraphics->setFullscreen(fullscreen)) + if (!graphics->setFullscreen(fullscreen)) { fullscreen = !fullscreen; - if (!guiGraphics->setFullscreen(fullscreen)) + if (!graphics->setFullscreen(fullscreen)) { std::cerr << "Failed to switch to " << (fullscreen ? "windowed" : "fullscreen") << -- cgit v1.2.3-70-g09d2