[Scummvm-git-logs] scummvm branch-3-0 -> 3e6a4cf3e4688d2ab973c8f0090569c92ff7a6de
moralrecordings
noreply at scummvm.org
Thu Dec 4 19:04:09 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:
3e6a4cf3e4 DIRECTOR: Fix regression for TextCastMembers that use dynamic text
Commit: 3e6a4cf3e4688d2ab973c8f0090569c92ff7a6de
https://github.com/scummvm/scummvm/commit/3e6a4cf3e4688d2ab973c8f0090569c92ff7a6de
Author: Scott Percival (code at moral.net.au)
Date: 2025-12-05T03:03:41+08:00
Commit Message:
DIRECTOR: Fix regression for TextCastMembers that use dynamic text
This reverts commit c548cede6f68d1c63f620966d90b3e47811174b5.
Fixes inventory screen in Derrat Sorcerum.
Changed paths:
engines/director/castmember/text.cpp
diff --git a/engines/director/castmember/text.cpp b/engines/director/castmember/text.cpp
index 7319f18b863..c110fc71cdb 100644
--- a/engines/director/castmember/text.cpp
+++ b/engines/director/castmember/text.cpp
@@ -323,8 +323,8 @@ Graphics::MacWidget *TextCastMember::createWidget(Common::Rect &bbox, Channel *c
dims.bottom = MIN<int>(dims.bottom, dims.top + _initialRect.height());
} else if (_textType == kTextTypeFixed || _textType == kTextTypeScrolling) {
// use initialRect to create widget for fixed style text, this maybe related to version.
- dims.right = MIN<int>(dims.right, dims.left + _initialRect.width());
- dims.bottom = MIN<int>(dims.bottom, dims.top + MAX<int>(_initialRect.height(), _maxHeight));
+ dims.right = MAX<int>(dims.right, dims.left + _initialRect.width());
+ dims.bottom = MAX<int>(dims.bottom, dims.top + MAX<int>(_initialRect.height(), _maxHeight));
}
widget = createWindowOrWidget(bbox, dims, macFont);
if (_textType != kTextTypeScrolling) {
More information about the Scummvm-git-logs
mailing list