Cleanup: collect the C64 specific render data into a struct inside class Gdi

svn-id: r17224
This commit is contained in:
Max Horn 2005-03-25 00:56:03 +00:00
parent 88cf4e3c29
commit 7ed1c19f6c
6 changed files with 60 additions and 55 deletions

View file

@ -481,11 +481,11 @@ void ScummEngine::drawObject(int obj, int arg) {
byte flags = od.flags;
if (_version == 1) {
gdi._C64ObjectMode = true;
gdi._objectMode = true;
if (_features & GF_NES) {
gdi.decodeNESObject(ptr, xpos, ypos, width, height);
} else {
gdi.decodeC64Gfx(ptr, gdi._C64ObjectMap, width * (height / 8) * 3);
gdi.decodeC64Gfx(ptr, gdi._C64.objectMap, width * (height / 8) * 3);
}
}
// Sam & Max needs this to fix object-layering problems with