summaryrefslogtreecommitdiff
path: root/src/graphics.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/graphics.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/graphics.cpp')
-rw-r--r--src/graphics.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 9bfce133..47414ff0 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -132,6 +132,9 @@ bool Graphics::drawImage(Image *image, int x, int y)
bool Graphics::drawImage(Image *image, int srcX, int srcY, int dstX, int dstY,
int width, int height)
{
+ dstX += mClipStack.top().xOffset;
+ dstY += mClipStack.top().yOffset;
+
srcX += image->bounds.x;
srcY += image->bounds.y;