summaryrefslogtreecommitdiff
path: root/src/gui/viewport.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-09 17:38:54 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-09 22:46:35 +0300
commitbd88033a7d721102544c21d449a541ceb3bcc285 (patch)
treea8008a805f184a3e93c9c06634a91eecd8f9a4ed /src/gui/viewport.h
parenteb6304c769c6a898d35d7d971ddd35307fef8a1a (diff)
downloadplus-bd88033a7d721102544c21d449a541ceb3bcc285.tar.gz
plus-bd88033a7d721102544c21d449a541ceb3bcc285.tar.bz2
plus-bd88033a7d721102544c21d449a541ceb3bcc285.tar.xz
plus-bd88033a7d721102544c21d449a541ceb3bcc285.zip
fix movement with long press enabled.
Diffstat (limited to 'src/gui/viewport.h')
-rw-r--r--src/gui/viewport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/viewport.h b/src/gui/viewport.h
index 4f7ce5727..61fee37f8 100644
--- a/src/gui/viewport.h
+++ b/src/gui/viewport.h
@@ -326,6 +326,8 @@ class Viewport final : public WindowContainer,
int mScrollCenterOffsetY;
int mMouseX; /**< Current mouse position in pixels. */
int mMouseY; /**< Current mouse position in pixels. */
+ int mMousePressX;
+ int mMousePressY;
int mPixelViewX; /**< Current viewpoint in pixels. */
int mPixelViewY; /**< Current viewpoint in pixels. */
int mShowDebugPath; /**< Show a path from player to pointer. */