mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 17:33:05 +00:00
Add minor code differences in Elvira 2 and Waxworks.
svn-id: r26969
This commit is contained in:
parent
5cc524d17e
commit
5f84a9ce71
@ -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() {
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user