Add minor code differences in Elvira 2 and Waxworks.

svn-id: r26969
This commit is contained in:
Travis Howell 2007-05-27 11:46:42 +00:00
parent 5cc524d17e
commit 5f84a9ce71
2 changed files with 12 additions and 7 deletions

View File

@ -1258,8 +1258,10 @@ void AGOSEngine::vc37_pokePalette() {
palptr[2] = ((color & 0x00f) >> 0) * 32;
palptr[3] = 0;
_paletteFlag = 2;
_vgaSpriteChanged++;
if (_lockWord & 0x20) {
_paletteFlag = 1;
_displayScreen++;
}
}
void AGOSEngine::vc38_ifVarNotZero() {

View File

@ -123,6 +123,10 @@ void AGOSEngine::colorWindow(WindowBlock *window) {
dst += _screenWidth;
}
} else {
dst = getFrontBuf() + _dxSurfacePitch * (window->y) + window->x * 8;
h = window->height * 8;
w = window->width * 8;
if (getGameType() == GType_ELVIRA2 && window->y == 146) {
if (window->fill_color == 1) {
_displayPalette[33 * 4 + 0] = 48 * 4;
@ -134,12 +138,11 @@ void AGOSEngine::colorWindow(WindowBlock *window) {
_displayPalette[33 * 4 + 2] = 40 * 4;
}
_paletteFlag = 2;
}
dst -= _dxSurfacePitch;
h += 2;
dst = getFrontBuf() + _dxSurfacePitch * window->y + window->x * 8;
h = window->height * 8;
w = window->width * 8;
_paletteFlag = 1;
}
uint8 color = window->fill_color;
if (getGameType() == GType_ELVIRA2 || getGameType() == GType_WW)