aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2004-09-24 21:38:22 +0000
committerMax Horn2004-09-24 21:38:22 +0000
commit503fb0982ecb2c66a033344d4e0dd85f342ed4f5 (patch)
tree1da46786f497ab01a95b6d3bcb466d19e17744c5
parentd17f88d9670d428995a69edc08f54d585e0f181f (diff)
downloadscummvm-rg350-503fb0982ecb2c66a033344d4e0dd85f342ed4f5.tar.gz
scummvm-rg350-503fb0982ecb2c66a033344d4e0dd85f342ed4f5.tar.bz2
scummvm-rg350-503fb0982ecb2c66a033344d4e0dd85f342ed4f5.zip
Get rid of unused dbClear flag
svn-id: r15255
-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
};
};