From 3046bcb38c70c1642502437ff66258678cb643e7 Mon Sep 17 00:00:00 2001 From: alxpnv Date: Fri, 13 Aug 2021 14:55:03 +0300 Subject: [PATCH] ASYLUM: (VCR puzzle) fix transition to video --- engines/asylum/puzzles/vcr.cpp | 5 ++++- engines/asylum/system/screen.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/engines/asylum/puzzles/vcr.cpp b/engines/asylum/puzzles/vcr.cpp index 30ea03d3c72..6b90b89a3b2 100644 --- a/engines/asylum/puzzles/vcr.cpp +++ b/engines/asylum/puzzles/vcr.cpp @@ -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); diff --git a/engines/asylum/system/screen.h b/engines/asylum/system/screen.h index 85ff8bcefb6..cdc5752393d 100644 --- a/engines/asylum/system/screen.h +++ b/engines/asylum/system/screen.h @@ -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();