summaryrefslogtreecommitdiff
path: root/src/gui/setup.cpp
diff options
context:
space:
mode:
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") <<