aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
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;
}