[Scummvm-git-logs] scummvm master -> 4e096f2deade47beee3ae6d24b4ab7ddeccd56ca

aquadran noreply at scummvm.org
Thu Sep 4 16:21:43 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:
4e096f2dea WINTERMUTE: Added few comments to code


Commit: 4e096f2deade47beee3ae6d24b4ab7ddeccd56ca
    https://github.com/scummvm/scummvm/commit/4e096f2deade47beee3ae6d24b4ab7ddeccd56ca
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2025-09-04T18:21:39+02:00

Commit Message:
WINTERMUTE: Added few comments to code

Changed paths:
    engines/wintermute/base/base_game.cpp


diff --git a/engines/wintermute/base/base_game.cpp b/engines/wintermute/base/base_game.cpp
index 263a015146e..233a7e36b34 100644
--- a/engines/wintermute/base/base_game.cpp
+++ b/engines/wintermute/base/base_game.cpp
@@ -1529,6 +1529,7 @@ bool BaseGame::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack
 
 		_musicCrossfadeRunning = true;
 
+		 // FoxTail:
 		_musicCrossfadeVolume1 = 0;
 		_musicCrossfadeVolume2 = 100;
 
@@ -1636,6 +1637,8 @@ bool BaseGame::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack
 	// PlayVideo
 	//////////////////////////////////////////////////////////////////////////
 	else if (strcmp(name, "PlayVideo") == 0) {
+		//Game->LOG(0, "Warning: Game.PlayVideo() is now deprecated. Use Game.PlayTheora() instead.");
+
 		stack->correctParams(6);
 		const char *filename = stack->pop()->getString();
 		ScValue *valType = stack->pop();
@@ -3163,6 +3166,7 @@ ScValue *BaseGame::scGetProperty(const Common::String &name) {
 	// HardwareTL
 	//////////////////////////////////////////////////////////////////////////
 	else if (name == "HardwareTL") {
+		// always support hardware transformations and lights
 		_scValue->setBool(true);
 		return _scValue;
 	}
@@ -5013,7 +5017,7 @@ void BaseGame::setWindowTitle() {
 		}
 		Common::strlcat(title, "Wintermute Engine", 512);
 
-
+		// ignoring setting window title
 		Utf8String utf8Title;
 		if (_textEncoding == TEXT_UTF8) {
 			utf8Title = Utf8String(title);
@@ -5584,9 +5588,9 @@ bool BaseGame::displayDebugInfo() {
 			_systemFont->drawText((const byte *)_activeObject->_name, 0, 150, _renderer->getWidth(), TAL_RIGHT);
 		}
 
+		// Display used memory
 		Common::sprintf_s(str, "GfxMem: %dMB", _usedMem / (1024 * 1024));
 		_systemFont->drawText((byte *)str, 0, 170, _renderer->getWidth(), TAL_RIGHT);
-
 	}
 
 	return STATUS_OK;




More information about the Scummvm-git-logs mailing list