Fix bugs #941074 and #828860, by switching to graphics renderer code used by earlier (non-Windows) versions of Simon the Sorcerer 1/2.

svn-id: r26825
This commit is contained in:
Travis Howell 2007-05-13 08:46:48 +00:00
parent aa89759a55
commit b6672f37a9
14 changed files with 310 additions and 375 deletions

View file

@ -447,6 +447,18 @@ void AGOSEngine::o_comment() {
void AGOSEngine::o_haltAnimation() {
// 88: stop animation
_lockWord |= 0x10;
if (getGameType() == GType_SIMON1 || getGameType() == GType_SIMON2) {
VgaTimerEntry *vte = _vgaTimerList;
while (vte->delay) {
if (vte->type == 0)
vte->delay += 10;
vte++;
}
_scrollCount = 0;
_scrollFlag = 0;
}
}
void AGOSEngine::o_restartAnimation() {
@ -511,6 +523,13 @@ void AGOSEngine::o_loadZone() {
}
loadZone(vga_res);
if (getGameType() == GType_ELVIRA1 || getGameType() == GType_ELVIRA2 ||
getGameType() == GType_WW) {
_copyScnFlag = 0;
_vgaSpriteChanged = 0;
}
_lockWord &= ~0x80;
}