added V8 scaling code

svn-id: r6440
This commit is contained in:
Max Horn 2003-01-13 01:29:45 +00:00
parent 1f88542417
commit eb9726c497
7 changed files with 117 additions and 36 deletions

View file

@ -532,6 +532,16 @@ void Scumm::saveOrLoad(Serializer *s, uint32 savegameVersion)
MKEND()
};
const SaveLoadEntry scaleSlotsEntries[] = {
MKLINE(ScaleSlot, x1, sleUint16, VER_V13),
MKLINE(ScaleSlot, y1, sleUint16, VER_V13),
MKLINE(ScaleSlot, scale1, sleUint16, VER_V13),
MKLINE(ScaleSlot, x2, sleUint16, VER_V13),
MKLINE(ScaleSlot, y2, sleUint16, VER_V13),
MKLINE(ScaleSlot, scale2, sleUint16, VER_V13),
MKEND()
};
int i, j;
int var120Backup;
int var98Backup;
@ -564,6 +574,9 @@ void Scumm::saveOrLoad(Serializer *s, uint32 savegameVersion)
s->saveLoadArrayOf(_string, 6, sizeof(_string[0]), stringTabEntries);
s->saveLoadArrayOf(_colorCycle, 16, sizeof(_colorCycle[0]), colorCycleEntries);
if (savegameVersion >= VER_V13)
s->saveLoadArrayOf(_scaleSlots, 20, sizeof(_scaleSlots[0]), scaleSlotsEntries);
for (i = rtFirst; i <= rtLast; i++)
if (res.mode[i] == 0)
for (j = 1; j < res.num[i]; j++)