SWORD25: Fix for blitting images with negative offsets

svn-id: r53347
This commit is contained in:
Paul Gilbert 2010-09-14 09:03:41 +00:00 committed by Eugene Sandulenko
parent e0cd481d95
commit 21fe28dbef

View File

@ -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;
}