[Scummvm-git-logs] scummvm master -> 204dbeb49a6ebbfa1686e1714c53a65cead6cbca

neuromancer noreply at scummvm.org
Fri Aug 15 08:05:05 UTC 2025


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

Summary:
02370e06c8 PRIVATE: clear subtitles when they finish playing
204dbeb49a PRIVATE: refresh mouse screen during videos when moving the cursor


Commit: 02370e06c8c548ff7ce065f46f6ba529dd705965
    https://github.com/scummvm/scummvm/commit/02370e06c8c548ff7ce065f46f6ba529dd705965
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2025-08-15T09:57:28+02:00

Commit Message:
PRIVATE: clear subtitles when they finish playing

Changed paths:
    engines/private/private.cpp


diff --git a/engines/private/private.cpp b/engines/private/private.cpp
index ffd4e99c227..1adf2e3f2ca 100644
--- a/engines/private/private.cpp
+++ b/engines/private/private.cpp
@@ -384,6 +384,7 @@ Common::Error PrivateEngine::run() {
 				_videoDecoder = nullptr;
 				delete _subtitles;
 				_subtitles = nullptr;
+				g_system->clearOverlay();
 				_currentMovie = "";
 			} else if (_videoDecoder->needsUpdate()) {
 				drawScreen();
@@ -413,6 +414,7 @@ Common::Error PrivateEngine::run() {
 			} else {
 				delete _subtitles;
 				_subtitles = nullptr;
+				g_system->clearOverlay();
 			}
 		}
 	}
@@ -1501,6 +1503,7 @@ void PrivateEngine::loadSubtitles(const Common::Path &path) {
 	} else {
 		delete _subtitles;
 		_subtitles = nullptr;
+		g_system->clearOverlay();
 	}
 }
 void PrivateEngine::playVideo(const Common::String &name) {
@@ -1525,6 +1528,7 @@ void PrivateEngine::skipVideo() {
 	_videoDecoder = nullptr;
 	delete _subtitles;
 	_subtitles = nullptr;
+	g_system->clearOverlay();
 	_currentMovie = "";
 }
 


Commit: 204dbeb49a6ebbfa1686e1714c53a65cead6cbca
    https://github.com/scummvm/scummvm/commit/204dbeb49a6ebbfa1686e1714c53a65cead6cbca
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2025-08-15T09:57:29+02:00

Commit Message:
PRIVATE: refresh mouse screen during videos when moving the cursor

Changed paths:
    engines/private/private.cpp


diff --git a/engines/private/private.cpp b/engines/private/private.cpp
index 1adf2e3f2ca..0868b859ed6 100644
--- a/engines/private/private.cpp
+++ b/engines/private/private.cpp
@@ -280,8 +280,10 @@ Common::Error PrivateEngine::run() {
 	}
 
 	_needToDrawScreenFrame = false;
+	bool needsUpdate = false;
 
 	while (!shouldQuit()) {
+		needsUpdate = false;
 		checkPhoneCall();
 
 		while (g_system->getEventManager()->pollEvent(event)) {
@@ -333,6 +335,7 @@ Common::Error PrivateEngine::run() {
 				break;
 
 			case Common::EVENT_MOUSEMOVE:
+				needsUpdate = true;
 				// Reset cursor to default
 				changeCursor("default");
 				// The following functions will return true
@@ -386,6 +389,8 @@ Common::Error PrivateEngine::run() {
 				_subtitles = nullptr;
 				g_system->clearOverlay();
 				_currentMovie = "";
+			} else if (!_videoDecoder->needsUpdate() && needsUpdate) {
+				g_system->updateScreen();
 			} else if (_videoDecoder->needsUpdate()) {
 				drawScreen();
 			}




More information about the Scummvm-git-logs mailing list