summaryrefslogtreecommitdiff
path: root/src/gui/window.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-25 18:06:19 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-25 18:06:19 +0000
commit2c7d0b3518d72a7ab0726b72f7d2137e5944f049 (patch)
tree7080b1e32df54b8b44875df3609e94888939eb89 /src/gui/window.cpp
parent529ba0581833b05921d8dc3336b02a3c6abd511a (diff)
downloadmana-client-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.tar.gz
mana-client-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.tar.bz2
mana-client-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.tar.xz
mana-client-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.zip
Made our drawImage() method respect the clip area from the guichan graphics part. Removed some (now) obsolete code. Fixed compilation errors.
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r--src/gui/window.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index f59e6438..4184f17a 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -134,18 +134,15 @@ void Window::setWindowContainer(WindowContainer *wc)
void Window::draw(gcn::Graphics* graphics)
{
- int x, y;
- getAbsolutePosition(x, y);
-
- dynamic_cast<Graphics*>(graphics)->drawImageRect(x, y, getWidth(), getHeight(),
+ dynamic_cast<Graphics*>(graphics)->drawImageRect(0, 0, getWidth(), getHeight(),
border);
// Draw grip
if (resizable)
{
dynamic_cast<Graphics*>(graphics)->drawImage(Window::resizeGrip,
- x + getWidth() - resizeGrip->getWidth(),
- y + getHeight() - resizeGrip->getHeight());
+ getWidth() - resizeGrip->getWidth(),
+ getHeight() - resizeGrip->getHeight());
}
// Draw title
@@ -393,8 +390,6 @@ void Window::optionChanged(const std::string &name)
gcn::Rectangle Window::getGripDimension ()
{
- int x, y;
- getAbsolutePosition(x, y);
return gcn::Rectangle(getWidth() - resizeGrip->getWidth(), getHeight() - resizeGrip->getHeight(), getWidth(),
getHeight());
}