summaryrefslogtreecommitdiff
path: root/src/gui/windowmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-24 14:01:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-24 21:18:57 +0300
commit0a8b5d325f2d2c326b6da27399711b198417a499 (patch)
tree9e89aa7610f3f74ef9df53f6afce6655fc95ab07 /src/gui/windowmenu.cpp
parent779b65f15d3350b2d95a095e24a90526c64dcecb (diff)
downloadmanaplus-0a8b5d325f2d2c326b6da27399711b198417a499.tar.gz
manaplus-0a8b5d325f2d2c326b6da27399711b198417a499.tar.bz2
manaplus-0a8b5d325f2d2c326b6da27399711b198417a499.tar.xz
manaplus-0a8b5d325f2d2c326b6da27399711b198417a499.zip
Rename Rectangle into Rect.
Rename ClipRectangle into ClipRect.
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r--src/gui/windowmenu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp
index 79ed7255d..40a5445ca 100644
--- a/src/gui/windowmenu.cpp
+++ b/src/gui/windowmenu.cpp
@@ -168,7 +168,7 @@ WindowMenu::WindowMenu(const Widget2 *const widget) :
x += mPadding - mSpacing;
if (mainGraphics)
- setDimension(Rectangle(mainGraphics->mWidth - x, 0, x, h));
+ setDimension(Rect(mainGraphics->mWidth - x, 0, x, h));
loadButtons();
@@ -293,7 +293,7 @@ void WindowMenu::mouseMoved(MouseEvent &event)
const int x = event.getX();
const int y = event.getY();
const int key = btn->getTag();
- const Rectangle &rect = mDimension;
+ const Rect &rect = mDimension;
if (key != Input::KEY_NO_VALUE)
{
mTextPopup->show(x + rect.x, y + rect.y, btn->getDescription(),
@@ -350,7 +350,7 @@ void WindowMenu::updateButtons()
}
x += mPadding - mSpacing;
if (mainGraphics)
- setDimension(Rectangle(mainGraphics->mWidth - x, 0, x, h));
+ setDimension(Rect(mainGraphics->mWidth - x, 0, x, h));
}
void WindowMenu::loadButtons()