summaryrefslogtreecommitdiff
path: root/src/gui/viewport.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-03 23:28:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-03 23:28:59 +0300
commit0b8f87cd8cf8020c97e10a979b6aba8d7cafa704 (patch)
tree2d6271ea9198c606b1e33957ad5d5f22b239693b /src/gui/viewport.h
parentf0f135493b2951af8661c8d7e7396c713164a723 (diff)
downloadplus-0b8f87cd8cf8020c97e10a979b6aba8d7cafa704.tar.gz
plus-0b8f87cd8cf8020c97e10a979b6aba8d7cafa704.tar.bz2
plus-0b8f87cd8cf8020c97e10a979b6aba8d7cafa704.tar.xz
plus-0b8f87cd8cf8020c97e10a979b6aba8d7cafa704.zip
Improve a bit calculations in viewport.
Diffstat (limited to 'src/gui/viewport.h')
-rw-r--r--src/gui/viewport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/viewport.h b/src/gui/viewport.h
index fa02f244b..d189b2415 100644
--- a/src/gui/viewport.h
+++ b/src/gui/viewport.h
@@ -184,6 +184,8 @@ class Viewport final : public WindowContainer,
void updateMidVars();
+ void updateMaxVars();
+
static void validateSpeed();
private:
@@ -233,6 +235,8 @@ class Viewport final : public WindowContainer,
int mPixelViewY; /**< Current viewpoint in pixels. */
int mMidTileX;
int mMidTileY;
+ int mViewXmax;
+ int mViewYmax;
int mLocalWalkTime; /**< Timestamp before the next walk can be sent. */