[Scummvm-git-logs] scummvm master -> 0c6c6f50abafc49a01c3410d378aa7b8714ca724

sdelamarre noreply at scummvm.org
Sat Nov 7 21:35:59 UTC 2026


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:
0c6c6f50ab GOB: Fix usage of global color offset in o7_printText


Commit: 0c6c6f50abafc49a01c3410d378aa7b8714ca724
    https://github.com/scummvm/scummvm/commit/0c6c6f50abafc49a01c3410d378aa7b8714ca724
Author: Simon Delamarre (simon.delamarre14 at gmail.com)
Date: 2026-11-07T22:35:42+01:00

Commit Message:
GOB: Fix usage of global color offset in o7_printText

This fixes subtitles in Adi4/Anglais video resources

Changed paths:
    engines/gob/inter_v7.cpp


diff --git a/engines/gob/inter_v7.cpp b/engines/gob/inter_v7.cpp
index 03eaecfbc6e..0e294ce9723 100644
--- a/engines/gob/inter_v7.cpp
+++ b/engines/gob/inter_v7.cpp
@@ -1660,12 +1660,11 @@ void Inter_v7::o7_printText(OpFuncParams &params) {
 		_vm->_draw->_transparency = 1;
 	}
 
-	// colMod is read from conf file (_off_=xxx).
-	// in Playtoons, it's not present in the conf file, thus always equal to the default value (0).
-	// Maybe used in ADIs...
-	//	if (!_vm->_draw->_transparency)
-	//		_vm->_draw->_backColor += colMod;
-	//	_vm->_draw->_frontColor += colMod;
+	int16 colorOffset = _vm->_draw->_colorOffset; // NB: _colorOffset is often 0, but set to 10 by o7_startAdi4Application
+	if (_vm->_draw->_transparency == 0 && (_vm->_draw->_backColor <= 255 - colorOffset))
+		_vm->_draw->_backColor += colorOffset;
+	if (_vm->_draw->_frontColor <= 255 - colorOffset)
+		_vm->_draw->_frontColor += colorOffset;
 
 	int16 oldTransparency = _vm->_draw->_transparency;
 	int i = 0;




More information about the Scummvm-git-logs mailing list