diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-25 18:06:19 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-25 18:06:19 +0000 |
commit | 2c7d0b3518d72a7ab0726b72f7d2137e5944f049 (patch) | |
tree | 7080b1e32df54b8b44875df3609e94888939eb89 /src/openglgraphics.cpp | |
parent | 529ba0581833b05921d8dc3336b02a3c6abd511a (diff) | |
download | mana-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.tar.gz mana-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.tar.bz2 mana-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.tar.xz mana-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/openglgraphics.cpp')
-rw-r--r-- | src/openglgraphics.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp index 44611045..883672bb 100644 --- a/src/openglgraphics.cpp +++ b/src/openglgraphics.cpp @@ -74,6 +74,9 @@ bool OpenGLGraphics::setVideoMode(int w, int h, int bpp, bool fs, bool hwaccel) bool OpenGLGraphics::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; |