diff options
author | Paul Gilbert | 2010-09-14 09:03:41 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 23:47:26 +0000 |
commit | 21fe28dbef160ab3ef4ad1c96e6f38b12a0b3ade (patch) | |
tree | 624e6fedf373abb6ad8e086afbf3db6f71dcffff /engines | |
parent | e0cd481d95f23f949def29c25ad4dedd507da133 (diff) | |
download | scummvm-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.cpp | 2 |
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; } |