[Scummvm-git-logs] scummvm master -> ac02b9d780ed43dbd774593512359f4a79bb5407

neuromancer noreply at scummvm.org
Sat Jun 4 12:37:40 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
ac02b9d780 HYPNO: removed annoying palette swap glitch when the engine finishes playing a video and starts another


Commit: ac02b9d780ed43dbd774593512359f4a79bb5407
    https://github.com/scummvm/scummvm/commit/ac02b9d780ed43dbd774593512359f4a79bb5407
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2022-06-04T14:20:24+02:00

Commit Message:
HYPNO: removed annoying palette swap glitch when the engine finishes playing a video and starts another

Changed paths:
    engines/hypno/arcade.cpp
    engines/hypno/hypno.cpp


diff --git a/engines/hypno/arcade.cpp b/engines/hypno/arcade.cpp
index bb892bd6447..cfe99d674b7 100644
--- a/engines/hypno/arcade.cpp
+++ b/engines/hypno/arcade.cpp
@@ -348,7 +348,8 @@ void HypnoEngine::runArcade(ArcadeShooting *arc) {
 
 		if (needsUpdate) {
 			getPlayerPosition(true);
-			drawScreen();
+			if (_background->decoder->getCurFrame() > 0)
+				drawScreen();
 			updateScreen(*_background);
 			if (!arc->maskVideo.empty() && _masks->decoder->needsUpdate())
 				_mask = _masks->decoder->decodeNextFrame();
diff --git a/engines/hypno/hypno.cpp b/engines/hypno/hypno.cpp
index 9b61abc1fae..864855b1361 100644
--- a/engines/hypno/hypno.cpp
+++ b/engines/hypno/hypno.cpp
@@ -265,8 +265,8 @@ void HypnoEngine::runIntros(Videos &videos) {
 				} else {
 					playing = true;
 					if (it->decoder->needsUpdate()) {
-						drawScreen();
 						updateScreen(*it);
+						drawScreen();
 					}
 				}
 			}




More information about the Scummvm-git-logs mailing list