aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-09-04 22:19:13 +0200
committerEugene Sandulenko2016-09-04 22:19:13 +0200
commit8cc0583c747b47a7b5ff1354c4d84e83887177f5 (patch)
treed1eec6a6d4caac7ff920afbaff3fd166ad2b9a05
parentbbdae9120e661a36254c5c6f171e89c973d58bc8 (diff)
downloadscummvm-rg350-8cc0583c747b47a7b5ff1354c4d84e83887177f5.tar.gz
scummvm-rg350-8cc0583c747b47a7b5ff1354c4d84e83887177f5.tar.bz2
scummvm-rg350-8cc0583c747b47a7b5ff1354c4d84e83887177f5.zip
FULLPIPE: Fix drawAlphaRectangle()
-rw-r--r--engines/fullpipe/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index 6d0edf7852..2e941c90f0 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;