[Scummvm-git-logs] scummvm master -> 679292d78858f9efeee1421795147f1cbe1a6ee0

neuromancer noreply at scummvm.org
Fri Aug 30 06:41:54 UTC 2024


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:
679292d788 HYPNO: use GFXTransaction and add missing video in wet


Commit: 679292d78858f9efeee1421795147f1cbe1a6ee0
    https://github.com/scummvm/scummvm/commit/679292d78858f9efeee1421795147f1cbe1a6ee0
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2024-08-30T08:43:02+02:00

Commit Message:
HYPNO: use GFXTransaction and add missing video in wet

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


diff --git a/engines/hypno/arcade.cpp b/engines/hypno/arcade.cpp
index 94a1a489a55..5b25dc42c8d 100644
--- a/engines/hypno/arcade.cpp
+++ b/engines/hypno/arcade.cpp
@@ -281,7 +281,9 @@ void HypnoEngine::runArcade(ArcadeShooting *arc) {
 
 	bool vsync = g_system->getFeatureState(OSystem::kFeatureVSync);
 	// Disable vsync for arcade sequences, since these require a fixed frame rate
+	g_system->beginGFXTransaction();
 	g_system->setFeatureState(OSystem::kFeatureVSync, false);
+	g_system->endGFXTransaction();
 
 	debugC(1, kHypnoDebugArcade, "Using frame delay: %d", arc->frameDelay);
 	Graphics::FrameLimiter limiter(g_system, 1000.0 / arc->frameDelay);
@@ -567,8 +569,10 @@ void HypnoEngine::runArcade(ArcadeShooting *arc) {
 		limiter.startFrame();
 	}
 
+	g_system->beginGFXTransaction();
 	// Restore vsync state
 	g_system->setFeatureState(OSystem::kFeatureVSync, vsync);
+	g_system->endGFXTransaction();
 
 	// Deallocate shoots
 	for (Shoots::iterator it = _shoots.begin(); it != _shoots.end(); ++it) {
diff --git a/engines/hypno/wet/arcade.cpp b/engines/hypno/wet/arcade.cpp
index 16c6bd3596c..ebc5b277310 100644
--- a/engines/hypno/wet/arcade.cpp
+++ b/engines/hypno/wet/arcade.cpp
@@ -216,6 +216,10 @@ void WetEngine::findNextSegment(ArcadeShooting *arc) {
 						_segmentOffset = 8;
 						_segmentRepetition = 0;
 						_segmentShootSequenceOffset = 8;
+
+						MVideo video(arc->hitBoss1Video, Common::Point(0, 0), false, true, false);
+						disableCursor();
+						runIntro(video);
 					} else if (_arcadeMode == "Y3")
 						_skipLevel = true;
 				} else {




More information about the Scummvm-git-logs mailing list