summaryrefslogtreecommitdiff
path: root/src/interface/Engine.cpp
diff options
context:
space:
mode:
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)