aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2010-09-14 09:03:41 +0000
committerEugene Sandulenko2010-10-12 23:47:26 +0000
commit21fe28dbef160ab3ef4ad1c96e6f38b12a0b3ade (patch)
tree624e6fedf373abb6ad8e086afbf3db6f71dcffff /engines
parente0cd481d95f23f949def29c25ad4dedd507da133 (diff)
downloadscummvm-rg350-21fe28dbef160ab3ef4ad1c96e6f38b12a0b3ade.tar.gz
scummvm-rg350-21fe28dbef160ab3ef4ad1c96e6f38b12a0b3ade.tar.bz2
scummvm-rg350-21fe28dbef160ab3ef4ad1c96e6f38b12a0b3ade.zip
SWORD25: Fix for blitting images with negative offsets
svn-id: r53347
Diffstat (limited to 'engines')
-rw-r--r--engines/sword25/gfx/opengl/glimage.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}