diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-22 19:35:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-22 19:35:29 +0300 |
commit | a7f215396a9278d148d3b4bffdc8e754ab5cc30c (patch) | |
tree | 4a4f8fae7705ac836fd2aa3f997e859671587ed9 /src/actionmanager.cpp | |
parent | dbe4b0a70a8ccf4c3be329f168d4388ba4b029b5 (diff) | |
download | manaverse-a7f215396a9278d148d3b4bffdc8e754ab5cc30c.tar.gz manaverse-a7f215396a9278d148d3b4bffdc8e754ab5cc30c.tar.bz2 manaverse-a7f215396a9278d148d3b4bffdc8e754ab5cc30c.tar.xz manaverse-a7f215396a9278d148d3b4bffdc8e754ab5cc30c.zip |
Add key for disable full screen mode.
Minus on numeric keyboard.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r-- | src/actionmanager.cpp | 9 |
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; +} + } |