From b9efb23e035a617652fa8b0452e38ccf86c14c6e Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 21 Aug 2010 21:12:01 +0000 Subject: SWORD25: Fix image blitting width. svn-id: r53273 --- engines/sword25/gfx/opengl/glimage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') 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; -- cgit v1.2.3