[Scummvm-cvs-logs] SF.net SVN: scummvm:[33713] scummvm/trunk/engines/cine/gfx.cpp
buddha_ at users.sourceforge.net
buddha_ at users.sourceforge.net
Sat Aug 9 18:07:09 CEST 2008
Revision: 33713
http://scummvm.svn.sourceforge.net/scummvm/?rev=33713&view=rev
Author: buddha_
Date: 2008-08-09 16:07:08 +0000 (Sat, 09 Aug 2008)
Log Message:
-----------
Added preliminary version of drawing type 22 overlays (Such overlays are added with opcode 0xA4 (o2_loadMask22) and removed with opcode 0xA5 (o2_unloadMask22)). Things might be wrong so needs testing! WIP!
Modified Paths:
--------------
scummvm/trunk/engines/cine/gfx.cpp
Modified: scummvm/trunk/engines/cine/gfx.cpp
===================================================================
--- scummvm/trunk/engines/cine/gfx.cpp 2008-08-09 15:17:32 UTC (rev 33712)
+++ scummvm/trunk/engines/cine/gfx.cpp 2008-08-09 16:07:08 UTC (rev 33713)
@@ -1109,6 +1109,16 @@
maskBgOverlay(_bgTable[it->x].bg, sprite->data(), sprite->_realWidth, sprite->_height, _backBuffer, obj->x, obj->y);
break;
+ // TODO: Figure out what this overlay type is and name it
+ // TODO: Check it this implementation really works correctly (Some things might be wrong, needs testing)
+ case 22: {
+ assert(it->objIdx < NUM_MAX_OBJECT);
+ obj = objectTable + it->objIdx;
+ byte transCol = obj->part & 0x0F;
+ drawPlainBox(obj->x, obj->y, obj->frame, obj->costume, transCol);
+ break;
+ }
+
// something else
default:
FWRenderer::renderOverlay(it);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list