aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/fullpipe/gfx.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index 90b8ae5c2b..5681e3c615 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -925,7 +925,7 @@ bool Bitmap::putDibRB(int32 *palette) {
}
if (fillLen > 0 || start1 >= 0) {
- if (x <= 799 + 1 || (fillLen += 799 - x + 1, fillLen > 0)) {
+ if (x <= _width + 1 || (fillLen += _width - x + 1, fillLen > 0)) {
if (y <= endy) {
int bgcolor = palette[(pixel >> 8) & 0xff];
curDestPtr = (uint32 *)_surface->getBasePtr(start1, y);
@@ -947,8 +947,8 @@ bool Bitmap::putDibRB(int32 *palette) {
}
}
- if (x > 799 + 1) {
- fillLen += 799 - x + 1;
+ if (x > _width + 1) {
+ fillLen += _width - x + 1;
if (fillLen <= 0)
continue;
}