From 21fe28dbef160ab3ef4ad1c96e6f38b12a0b3ade Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 14 Sep 2010 09:03:41 +0000 Subject: SWORD25: Fix for blitting images with negative offsets svn-id: r53347 --- engines/sword25/gfx/opengl/glimage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/sword25/gfx/opengl/glimage.cpp b/engines/sword25/gfx/opengl/glimage.cpp index 469c1ab167..f5dac96039 100644 --- a/engines/sword25/gfx/opengl/glimage.cpp +++ b/engines/sword25/gfx/opengl/glimage.cpp @@ -233,7 +233,7 @@ bool GLImage::blit(int posX, int posY, int flipping, Common::Rect *pPartRect, ui if (posX < 0) { img->w -= -posX; - img->pixels = (byte *)img->pixels + -posX; + img->pixels = (byte *)img->pixels + (-posX * 4); posX = 0; } -- cgit v1.2.3