aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/sword25/gfx/opengl/glimage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/gfx/opengl/glimage.cpp b/engines/sword25/gfx/opengl/glimage.cpp
index 22e15a4a7f..9029a09054 100644
--- a/engines/sword25/gfx/opengl/glimage.cpp
+++ b/engines/sword25/gfx/opengl/glimage.cpp
@@ -193,8 +193,8 @@ bool GLImage::Blit(int PosX, int PosY, int Flipping, Common::Rect *pPartRect, un
PosY = 0;
}
- w = CLIP(PosX + w, 0, (int)_backSurface->w - PosX - 1);
- h = CLIP(PosY + h, 0, (int)_backSurface->h - PosY - 1);
+ w = CLIP(w, 0, (int)_backSurface->w - PosX - 1);
+ h = CLIP(h, 0, (int)_backSurface->h - PosY - 1);
if (w == 0 || h == 0)
return true;