mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 11:36:22 +00:00
SWORD25: Fix for blitting images with negative offsets
svn-id: r53347
This commit is contained in:
parent
e0cd481d95
commit
21fe28dbef
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user