aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorathrxx2011-06-13 22:35:01 +0200
committerathrxx2011-06-13 22:35:01 +0200
commit724b22e5c7cbd0ebf3f605adff7a08242dba3a13 (patch)
treee67b59ca657e53a39c8bd10fb477394f0ca7a6ef /engines/scumm
parentbfa26ffc44f80e4eb3d8590f5f865cda6a5188b7 (diff)
downloadscummvm-rg350-724b22e5c7cbd0ebf3f605adff7a08242dba3a13.tar.gz
scummvm-rg350-724b22e5c7cbd0ebf3f605adff7a08242dba3a13.tar.bz2
scummvm-rg350-724b22e5c7cbd0ebf3f605adff7a08242dba3a13.zip
SCUMM FM-TOWNS: add number of color check in TownsScreen::updateOutputBuffer()
Although the 16 color surface is normally not on bottom, there could (theoretically?) be cases in 8bit fallback mode where this becomes relevant.
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/gfx_towns.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/gfx_towns.cpp b/engines/scumm/gfx_towns.cpp
index 10d6ee0082..cdccd3e193 100644
--- a/engines/scumm/gfx_towns.cpp
+++ b/engines/scumm/gfx_towns.cpp
@@ -458,7 +458,7 @@ void TownsScreen::updateOutputBuffer() {
}
for (int y = r->top; y <= r->bottom; ++y) {
- if (l->bpp == _bpp && l->scaleW == 1 && l->onBottom) {
+ if (l->bpp == _bpp && l->scaleW == 1 && l->onBottom && l->numCol & 0xff00) {
memcpy(dst, &l->bltInternY[y][l->bltInternX[r->left]], (r->right + 1 - r->left) * _bpp);
dst += _pitch;