diff options
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; |