summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-14 02:01:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-14 02:01:01 +0300
commit09963adfe919180f5936d048b4ab7a057134a8ff (patch)
tree24622dd1e65c8da04a026061784d0a1c72b293b1 /src
parentb64a1f46b930516927b1290c1d6771b491b84958 (diff)
downloadmanaplus-09963adfe919180f5936d048b4ab7a057134a8ff.tar.gz
manaplus-09963adfe919180f5936d048b4ab7a057134a8ff.tar.bz2
manaplus-09963adfe919180f5936d048b4ab7a057134a8ff.tar.xz
manaplus-09963adfe919180f5936d048b4ab7a057134a8ff.zip
Add quick fix for normal right click.
Diffstat (limited to 'src')
-rw-r--r--src/gui/viewport.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 46d47ab4a..c7e2b31df 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -270,13 +270,12 @@ void Viewport::logic()
BLOCK_START("Viewport::logic")
// Make the player follow the mouse position
// if the mouse is dragged elsewhere than in a window.
- followMouse();
+ Gui::getMouseState(&mMouseX, &mMouseY);
BLOCK_END("Viewport::logic")
}
void Viewport::followMouse()
{
- return;
if (!gui)
return;
const uint8_t button = Gui::getMouseState(&mMouseX, &mMouseY);