ASYLUM: (VCR puzzle) fix transition to video

This commit is contained in:
alxpnv 2021-08-13 14:55:03 +03:00
parent 68b204b9ef
commit 3046bcb38c
2 changed files with 5 additions and 1 deletions

View File

@ -326,8 +326,11 @@ void PuzzleVCR::updateScreen(const AsylumEvent &) {
getScreen()->draw(getWorld()->graphicResourceIds[0]);
getScreen()->drawGraphicsInQueue();
for (int16 barSize = 0; barSize < 84; barSize += 4)
getScreen()->clearDefaultColor();
for (int16 barSize = 0; barSize < 84; barSize += 4) {
getScreen()->drawWideScreenBars(barSize);
_vm->_system->updateScreen();
}
// Palette fade
getScreen()->paletteFade(0, 25, 10);

View File

@ -86,6 +86,7 @@ public:
// Misc
void clear();
void clearDefaultColor() { memset(_mainPalette, 0, 3); setupPalette(NULL, 0, 0); }
void drawWideScreenBars(int16 barSize) const;
void fillRect(int16 x, int16 y, int16 x2, int16 y2, uint32 color);
void copyBackBufferToScreen();