diff options
author | Travis Howell | 2009-06-04 09:36:13 +0000 |
---|---|---|
committer | Travis Howell | 2009-06-04 09:36:13 +0000 |
commit | d08c592bfd4c1b74e91227847c04afe2b7ca7ff4 (patch) | |
tree | 8f9d88d3e5f37ee1d2a71bb75952e5dff89624f5 /engines/scumm/gfx.cpp | |
parent | d1210392ef1c755fc0c513d81e4981141e6963ee (diff) | |
download | scummvm-rg350-d08c592bfd4c1b74e91227847c04afe2b7ca7ff4.tar.gz scummvm-rg350-d08c592bfd4c1b74e91227847c04afe2b7ca7ff4.tar.bz2 scummvm-rg350-d08c592bfd4c1b74e91227847c04afe2b7ca7ff4.zip |
Update drawBMAPObject for 16bit color.
svn-id: r41159
Diffstat (limited to 'engines/scumm/gfx.cpp')
-rw-r--r-- | engines/scumm/gfx.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp index a141d51735..0427e32326 100644 --- a/engines/scumm/gfx.cpp +++ b/engines/scumm/gfx.cpp @@ -1956,13 +1956,11 @@ void Gdi::drawBMAPBg(const byte *ptr, VirtScreen *vs) { } void Gdi::drawBMAPObject(const byte *ptr, VirtScreen *vs, int obj, int x, int y, int w, int h) { - assert(_vm->_bitDepth == 1); - const byte *bmap_ptr = _vm->findResourceData(MKID_BE('BMAP'), ptr); assert(bmap_ptr); byte code = *bmap_ptr++; - int scrX = _vm->_screenStartStrip * 8; + int scrX = _vm->_screenStartStrip * 8 * _vm->_bitDepth; if (code == 8 || code == 9) { Common::Rect rScreen(0, 0, vs->w, vs->h); |