summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui.cpp28
1 files changed, 1 insertions, 27 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 7c17b5991..2841a5369 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -82,6 +82,7 @@
#include "events/keyevent.h"
#include "listeners/focuslistener.h"
+#include "listeners/guiconfiglistener.h"
#include "listeners/keylistener.h"
#include "listeners/mouselistener.h"
@@ -108,33 +109,6 @@ SDLInput *guiInput = nullptr;
// Bolded font
Font *boldFont = nullptr;
-class GuiConfigListener final : public ConfigListener
-{
- public:
- explicit GuiConfigListener(Gui *const g):
- mGui(g)
- {}
-
- A_DELETE_COPY(GuiConfigListener)
-
- virtual ~GuiConfigListener()
- {
- CHECKLISTENERS
- }
-
- void optionChanged(const std::string &name)
- {
- if (!mGui)
- return;
- if (name == "customcursor")
- mGui->setUseCustomCursor(config.getBoolValue("customcursor"));
- else if (name == "doubleClick")
- mGui->setDoubleClick(config.getBoolValue("doubleClick"));
- }
- private:
- Gui *mGui;
-};
-
Gui::Gui() :
mTop(nullptr),
mGraphics(nullptr),