diff options
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r-- | src/graphics.cpp | 3 |
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; |