summaryrefslogtreecommitdiff
path: root/src/actionmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-22 19:35:29 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-22 19:35:29 +0300
commita7f215396a9278d148d3b4bffdc8e754ab5cc30c (patch)
tree4a4f8fae7705ac836fd2aa3f997e859671587ed9 /src/actionmanager.cpp
parentdbe4b0a70a8ccf4c3be329f168d4388ba4b029b5 (diff)
downloadmanaplus-a7f215396a9278d148d3b4bffdc8e754ab5cc30c.tar.gz
manaplus-a7f215396a9278d148d3b4bffdc8e754ab5cc30c.tar.bz2
manaplus-a7f215396a9278d148d3b4bffdc8e754ab5cc30c.tar.xz
manaplus-a7f215396a9278d148d3b4bffdc8e754ab5cc30c.zip
Add key for disable full screen mode.
Minus on numeric keyboard.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r--src/actionmanager.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index fa3c03526..28e5b9fc3 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -23,6 +23,7 @@
#include "dropshortcut.h"
#include "emoteshortcut.h"
#include "game.h"
+#include "graphics.h"
#include "inputevent.h"
#include "itemshortcut.h"
#include "inputmanager.h"
@@ -1029,4 +1030,12 @@ impHandler0(targetNPC)
return setTarget(ActorSprite::NPC);
}
+impHandler0(safeVideoMode)
+{
+ if (mainGraphics)
+ mainGraphics->setFullscreen(false);
+
+ return true;
+}
+
}