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

rvanlaar roland at rolandvanlaar.nl
Sat Aug 14 21:45:08 UTC 2021


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:
aff5e7ea2b DIRECTOR: load editable textFlags for D3 TextCast


Commit: aff5e7ea2bfe02139782d2f5f265ef8a78eaa9bf
    https://github.com/scummvm/scummvm/commit/aff5e7ea2bfe02139782d2f5f265ef8a78eaa9bf
Author: Roland van Laar (roland at rolandvanlaar.nl)
Date: 2021-08-14T23:43:31+02:00

Commit Message:
DIRECTOR: load editable textFlags for D3 TextCast

The flags are the same as for D4:
1: editable
2: auto tab
4: don't wrap

Changed paths:
    engines/director/castmember.cpp


diff --git a/engines/director/castmember.cpp b/engines/director/castmember.cpp
index 97b49115ce..ab10127f6d 100644
--- a/engines/director/castmember.cpp
+++ b/engines/director/castmember.cpp
@@ -632,7 +632,8 @@ TextCastMember::TextCastMember(Cast *cast, uint16 castId, Common::SeekableReadSt
 			pad2 = stream.readUint16();
 			_initialRect = Movie::readRect(stream);
 			pad3 = stream.readUint16();
-			pad4 = stream.readUint16();
+			_textFlags = stream.readUint16(); // 1: editable, 2: auto tab, 4: don't wrap
+			_editable = _textFlags & 0x1;
 			totalTextHeight = stream.readUint16();
 		}
 




More information about the Scummvm-git-logs mailing list