summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-15 00:19:35 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-15 00:19:35 +0300
commitf53e001120632302d214c9b90c373019448a889b (patch)
tree2cde2020d323aa65bd1a921051001a2adcb94b56 /src/gui/viewport.cpp
parent981301a12e50dde848f7ddf9e78168d15673c9fc (diff)
downloadmanaplus-f53e001120632302d214c9b90c373019448a889b.tar.gz
manaplus-f53e001120632302d214c9b90c373019448a889b.tar.bz2
manaplus-f53e001120632302d214c9b90c373019448a889b.tar.xz
manaplus-f53e001120632302d214c9b90c373019448a889b.zip
Fix context menu positions in some windows.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 15353d9f9..0fc7444ec 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -630,6 +630,11 @@ void Viewport::showPopup(int x, int y, Being *being)
mPopupMenu->showPopup(x, y, being);
}
+void Viewport::showPopup(Being *being)
+{
+ mPopupMenu->showPopup(getMouseX(), getMouseY(), being);
+}
+
void Viewport::showPlayerPopup(std::string nick)
{
mPopupMenu->showPlayerPopup(getMouseX(), getMouseY(), nick);