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

kelmer44 noreply at scummvm.org
Tue Sep 30 07:46:50 UTC 2025


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

Summary:
fa9df220a8 TOT: Fixes animations blocking the UI due to missing event polling


Commit: fa9df220a8772a6f6403bf68617134a10df070cd
    https://github.com/scummvm/scummvm/commit/fa9df220a8772a6f6403bf68617134a10df070cd
Author: kelmer (kelmer at gmail.com)
Date: 2025-09-30T09:46:29+02:00

Commit Message:
TOT: Fixes animations blocking the UI due to missing event polling

Changed paths:
    engines/tot/anims.cpp
    engines/tot/util.cpp


diff --git a/engines/tot/anims.cpp b/engines/tot/anims.cpp
index 06ce57484f2..0a3b6ebd099 100644
--- a/engines/tot/anims.cpp
+++ b/engines/tot/anims.cpp
@@ -863,7 +863,7 @@ static FliHeader readHeader(Common::File *file) {
 	file->read(headerfile.reserved2, 19 * 2);
 	headerfile.ofsframe1 = file->readSint32LE();
 	headerfile.ofsframe2 = file->readSint32LE();
-	file->read(headerfile.reserved2, 20 * 2);
+	file->read(headerfile.reserved3, 20 * 2);
 	return headerfile;
 }
 
diff --git a/engines/tot/util.cpp b/engines/tot/util.cpp
index 822826a6ea8..163cfea2ff8 100644
--- a/engines/tot/util.cpp
+++ b/engines/tot/util.cpp
@@ -468,6 +468,7 @@ void changeGameSpeed(Common::Event e) {
 
 void emptyLoop() {
 	do {
+		g_engine->_events->pollEvent();
 		g_engine->_chrono->updateChrono();
 		g_engine->_screen->update();
 	} while (!g_engine->_chrono->_gameTick && !g_engine->shouldQuit());




More information about the Scummvm-git-logs mailing list