aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/gfx.cpp6
-rw-r--r--scumm/gfx.h3
2 files changed, 4 insertions, 5 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 0fb3b94ebe..1d0df670c7 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -1246,10 +1246,10 @@ void Gdi::drawBitmap(const byte *ptr, VirtScreen *vs, int x, int y, const int wi
CHECK_HEAP;
if (vs->hasTwoBuffers) {
- if (flag & dbClear || !lightsOn)
- clear8Col(backbuff_ptr, vs->pitch, height);
- else
+ if (lightsOn)
copy8Col(backbuff_ptr, vs->pitch, bgbak_ptr, height);
+ else
+ clear8Col(backbuff_ptr, vs->pitch, height);
}
CHECK_HEAP;
diff --git a/scumm/gfx.h b/scumm/gfx.h
index 724fb2b314..be9fec580b 100644
--- a/scumm/gfx.h
+++ b/scumm/gfx.h
@@ -295,8 +295,7 @@ public:
enum DrawBitmapFlags {
dbAllowMaskOr = 1,
- dbDrawMaskOnAll = 2,
- dbClear = 4
+ dbDrawMaskOnAll = 2
};
};