summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-02 04:57:16 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-02 04:57:16 +0300
commit5f43cf85c7e59f0e1192f803560848777d64743f (patch)
tree283ddb56228ab7b19a62be6f6be0344e77745757 /src/gui/popupmenu.cpp
parentca58a3cced99fc2a8989da0155c1927bc0f08b6f (diff)
downloadmv-5f43cf85c7e59f0e1192f803560848777d64743f.tar.gz
mv-5f43cf85c7e59f0e1192f803560848777d64743f.tar.bz2
mv-5f43cf85c7e59f0e1192f803560848777d64743f.tar.xz
mv-5f43cf85c7e59f0e1192f803560848777d64743f.zip
Replace some getters to direct members access in graphics class.
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index 12669415d..33d0425e1 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -1912,10 +1912,10 @@ void PopupMenu::showUndressPopup(int x, int y, Being *being, Item *item)
void PopupMenu::showPopup(int x, int y)
{
setContentSize(mBrowserBox->getWidth() + 8, mBrowserBox->getHeight() + 8);
- if (graphics->getWidth() < (x + getWidth() + 5))
- x = graphics->getWidth() - getWidth();
- if (graphics->getHeight() < (y + getHeight() + 5))
- y = graphics->getHeight() - getHeight();
+ if (graphics->mWidth < (x + getWidth() + 5))
+ x = graphics->mWidth - getWidth();
+ if (graphics->mHeight < (y + getHeight() + 5))
+ y = graphics->mHeight - getHeight();
setPosition(x, y);
setVisible(true);
requestMoveToTop();