Fix subtitle regressions in DOS Floppy demo of Simon the Sorcerer 1.

svn-id: r31015
This commit is contained in:
Travis Howell 2008-03-01 03:59:56 +00:00
parent 5878f701c1
commit c8077925cc
2 changed files with 7 additions and 5 deletions

View File

@ -100,7 +100,7 @@ void AGOSEngine_Feeble::animateSpritesByY() {
vsp = &_vgaSprites[slot];
vsp->windowNum &= 0x7FFF;
vsp->windowNum &= ~0x8000;
vpe = &_vgaBufferPointers[vsp->zoneNum];
_curVgaFile1 = vpe->vgaFile1;
@ -134,7 +134,7 @@ void AGOSEngine_Feeble::animateSprites() {
vsp = _vgaSprites;
while (vsp->id) {
vsp->windowNum &= 0x7FFF;
vsp->windowNum &= ~0x8000;
vpe = &_vgaBufferPointers[vsp->zoneNum];
_curVgaFile1 = vpe->vgaFile1;
@ -211,7 +211,7 @@ void AGOSEngine::animateSprites() {
continue;
}
vsp->windowNum &= 0x7FFF;
vsp->windowNum &= ~0x8000;
vpe = &_vgaBufferPointers[vsp->zoneNum];
_curVgaFile1 = vpe->vgaFile1;
@ -446,7 +446,7 @@ void AGOSEngine::restoreBackGround() {
continue;
}
_windowNum = animTable->windowNum & 0x7FFF;
_windowNum = animTable->windowNum & ~0x8000;
VC10_state state;
state.srcPtr = animTable->srcPtr;
@ -840,7 +840,7 @@ void AGOSEngine::slowFadeIn() {
uint8 *src, *dst;
int c, p;
_fastFadeInFlag &= 0x7fff;
_fastFadeInFlag &= ~0x8000;
_paletteFlag = false;
memset(_videoBuf1, 0, 1024);

View File

@ -365,6 +365,8 @@ void AGOSEngine::printScreenText(uint vgaSpriteId, uint color, const char *strin
}
uint16 windowNum = (!getBitFlag(133)) ? 3 : 4;
if (getGameType() == GType_SIMON1 && (getFeatures() & GF_DEMO))
windowNum = 4;
x /= 8;
if (y < 2)