From a7f215396a9278d148d3b4bffdc8e754ab5cc30c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 22 Jul 2012 19:35:29 +0300 Subject: Add key for disable full screen mode. Minus on numeric keyboard. --- src/actionmanager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/actionmanager.cpp') 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; +} + } -- cgit v1.2.3-70-g09d2