summaryrefslogtreecommitdiff
path: root/src/gui/setup.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-14 22:25:54 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-14 22:25:54 +0000
commit8e1c3b592c9ebcec9e006bcc54eea55bfea4a864 (patch)
tree134de69274dad771a4cd9297a0a0617ed28a0543 /src/gui/setup.cpp
parent0ce6e9e8400c326e6848688b3b865c84d96e3073 (diff)
downloadMana-8e1c3b592c9ebcec9e006bcc54eea55bfea4a864.tar.gz
Mana-8e1c3b592c9ebcec9e006bcc54eea55bfea4a864.tar.bz2
Mana-8e1c3b592c9ebcec9e006bcc54eea55bfea4a864.tar.xz
Mana-8e1c3b592c9ebcec9e006bcc54eea55bfea4a864.zip
Removed guiGraphics global pointer and removed dependencies on gui.h in some places.
Diffstat (limited to 'src/gui/setup.cpp')
-rw-r--r--src/gui/setup.cpp7
1 files changed, 4 insertions, 3 deletions
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") <<