aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2010-08-21 21:12:01 +0000
committerEugene Sandulenko2010-10-12 23:12:03 +0000
commitb9efb23e035a617652fa8b0452e38ccf86c14c6e (patch)
tree6cf159100ee386f04c3f74fa205aa42c8de09d97
parentfccc44851f68f9153a17fdc886f8e532213a6d5a (diff)
downloadscummvm-rg350-b9efb23e035a617652fa8b0452e38ccf86c14c6e.tar.gz
scummvm-rg350-b9efb23e035a617652fa8b0452e38ccf86c14c6e.tar.bz2
scummvm-rg350-b9efb23e035a617652fa8b0452e38ccf86c14c6e.zip
SWORD25: Fix image blitting width.
svn-id: r53273
-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;