summaryrefslogtreecommitdiff
path: root/src/interface/Engine.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-05 16:31:49 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-05 16:31:49 (GMT)
commitd61690bc091af0e253abe18832cc06f6c998724a (patch)
treebc152e2abb2790d03d9c24b9576954d307fbcafc /src/interface/Engine.cpp
parentd379390d066add46513da73a690ef20414b6627b (diff)
downloadpowder-d61690bc091af0e253abe18832cc06f6c998724a.zip
powder-d61690bc091af0e253abe18832cc06f6c998724a.tar.gz
Prevent setting double scale on smaller screens. Fixes #166
Diffstat (limited to 'src/interface/Engine.cpp')
-rw-r--r--src/interface/Engine.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/interface/Engine.cpp b/src/interface/Engine.cpp
index 1a8ad95..044b5e5 100644
--- a/src/interface/Engine.cpp
+++ b/src/interface/Engine.cpp
@@ -14,6 +14,8 @@ using namespace std;
Engine::Engine():
state_(NULL),
+ maxWidth(0),
+ maxHeight(0),
mousex_(0),
mousey_(0),
mousexp_(0),
@@ -148,6 +150,12 @@ void Engine::SetSize(int width, int height)
height_ = height;
}
+void Engine::SetMaxSize(int width, int height)
+{
+ maxWidth = width;
+ maxHeight = height;
+}
+
void Engine::Tick()
{
if(state_ != NULL)