From 8cc0583c747b47a7b5ff1354c4d84e83887177f5 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 4 Sep 2016 22:19:13 +0200 Subject: [PATCH] FULLPIPE: Fix drawAlphaRectangle() --- engines/fullpipe/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index 6d0edf78525b..2e941c90f013 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -1266,7 +1266,7 @@ DynamicPhase *Shadows::findSize(int width, int height) { void FullpipeEngine::drawAlphaRectangle(int x1, int y1, int x2, int y2, int alpha) { for (int y = y1; y < y2; y++) { - uint32 *ptr = (uint32 *)g_fp->_backgroundSurface.getBasePtr(0, y); + uint32 *ptr = (uint32 *)g_fp->_backgroundSurface.getBasePtr(x1, y); for (int x = x1; x < x2; x++) { uint32 color = *ptr;