[Scummvm-git-logs] scummvm master -> 2bda4c93349314abf11e69d567bd0bc957de7734

sev- noreply at scummvm.org
Wed Nov 18 21:15:13 UTC 2026


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

Summary:
2710b54119 DIRECTOR: Skip non-object entries in the actorList
fe9ae8f79d DIRECTOR: Update the text widget when a field's text is set
69d7bb51dd DIRECTOR: Keep the puppet palette through transitions
62dd4f787b DIRECTOR: Do not apply fore and back colors with Mask ink
2bda4c9334 GRAPHICS: Use Unicode for text drawn with TrueType fonts


Commit: 2710b541197280b19646272e1c197ac45b7a8356
    https://github.com/scummvm/scummvm/commit/2710b541197280b19646272e1c197ac45b7a8356
Author: Nick Nissen (nickknissen at gmail.com)
Date: 2026-11-18T22:15:07+01:00

Commit Message:
DIRECTOR: Skip non-object entries in the actorList

Skipper & Skeeto puts a 0 into the actorList with setAt when an animation ends and removes it a frame later.
Calling stepFrame on it crashed when the toy dog was dropped into the pocket.

Changed paths:
    engines/director/lingo/lingo.cpp


diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp
index 8da4c668410..4262c8f14c0 100644
--- a/engines/director/lingo/lingo.cpp
+++ b/engines/director/lingo/lingo.cpp
@@ -1665,6 +1665,10 @@ void Lingo::executePerFrameHook(int frame, int subframe, bool stepFrame) {
 	if (stepFrame && _actorList.u.farr->arr.size() > 0 && _vm->getVersion() >= 400) {
 		for (uint i = 0; i < _actorList.u.farr->arr.size(); i++) {
 			Datum actor = _actorList.u.farr->arr[i];
+			// Games can leave placeholders in the actorList, e.g. Skipper &
+			// Skeeto does setAt(the actorList, pos, 0) and deletes it a frame later
+			if (actor.type != OBJECT)
+				continue;
 			Symbol method = actor.u.obj->getMethod("stepFrame");
 			if (method.type != VOIDSYM) {
 				debugC(1, kDebugLingoExec, "Executing perFrameHook : <%s>, frame %d, subframe %d", actor.asString(true).c_str(), frame, subframe);


Commit: fe9ae8f79de4fa7ee7ce75ace24def3ec83aa41f
    https://github.com/scummvm/scummvm/commit/fe9ae8f79de4fa7ee7ce75ace24def3ec83aa41f
Author: Nick Nissen (nickknissen at gmail.com)
Date: 2026-11-18T22:15:07+01:00

Commit Message:
DIRECTOR: Update the text widget when a field's text is set

The widget kept showing the old text until it was rebuilt.
Skipper & Skeeto sets the subtitle font right after the text, which copied the old text back, so its subtitles came out empty.

Changed paths:
    engines/director/castmember/text.cpp


diff --git a/engines/director/castmember/text.cpp b/engines/director/castmember/text.cpp
index fe39167b538..0de6a8cf6c6 100644
--- a/engines/director/castmember/text.cpp
+++ b/engines/director/castmember/text.cpp
@@ -436,6 +436,10 @@ void TextCastMember::setRawText(const Common::String &text) {
 	Common::U32String formatting = Common::String::format("\001\016%04x%02x%04x%04x%04x%04x", _fontId, _textSlant, _fontSize, _fgpalinfo1, _fgpalinfo2, _fgpalinfo3);
 	_ftext = formatting + _ptext;
 	_modified = true;
+
+	Graphics::MacText *target = getWidget();
+	if (target)
+		target->setText(_ftext);
 }
 
 int TextCastMember::getLineCount() {


Commit: 69d7bb51dd91e872b5f5a1968b86e58bd2f4566a
    https://github.com/scummvm/scummvm/commit/69d7bb51dd91e872b5f5a1968b86e58bd2f4566a
Author: Nick Nissen (nickknissen at gmail.com)
Date: 2026-11-18T22:15:07+01:00

Commit Message:
DIRECTOR: Keep the puppet palette through transitions

A puppetPalette overrides the score's palette until it is released, but transitions faded to the frame palette anyway.
Skipper & Skeeto sets a puppet palette for every scene, so each scene change flashed in the wrong colors.

Changed paths:
    engines/director/transitions.cpp


diff --git a/engines/director/transitions.cpp b/engines/director/transitions.cpp
index 79d52d4f1b6..61c4f46c25e 100644
--- a/engines/director/transitions.cpp
+++ b/engines/director/transitions.cpp
@@ -182,7 +182,10 @@ void Window::playTransition(uint frame, RenderMode mode, uint16 transDuration, u
 	t.targetPal = g_director->getPalette();
 	t.targetPalLength = g_director->getPaletteColorCount();
 
-	if (!paletteId.isNull()) {
+	// A puppet palette overrides the score's palette channel until puppetPalette 0, so a
+	// transition must not fade to the frame's palette while one is set.
+	Score *score = g_director->getCurrentMovie()->getScore();
+	if (!paletteId.isNull() && !score->_puppetPalette) {
 		PaletteV4 *target = g_director->getPalette(paletteId);
 		if (target) {
 			t.targetPal = target->palette;
@@ -200,7 +203,6 @@ void Window::playTransition(uint frame, RenderMode mode, uint16 transDuration, u
 
 	Common::Rect clipRect;
 	Common::Rect innerDims = _window->getInnerDimensions();
-	Score *score = g_director->getCurrentMovie()->getScore();
 	if (t.area) {
 		// Changed area transition
 		score->updateSprites(mode);


Commit: 62dd4f787bd52a19b9f42c0cbeff61505fe1e538
    https://github.com/scummvm/scummvm/commit/62dd4f787bd52a19b9f42c0cbeff61505fe1e538
Author: Nick Nissen (nickknissen at gmail.com)
Date: 2026-11-18T22:15:07+01:00

Commit Message:
DIRECTOR: Do not apply fore and back colors with Mask ink

Mask ink recolored the sprite like Matte and Copy, which flattened full-color bitmaps to two colors.
Fixes the flashlight view in the bat cave in Skipper & Skeeto.

Changed paths:
    engines/director/graphics.cpp


diff --git a/engines/director/graphics.cpp b/engines/director/graphics.cpp
index 178f0467c83..b649a6af870 100644
--- a/engines/director/graphics.cpp
+++ b/engines/director/graphics.cpp
@@ -585,7 +585,6 @@ void DirectorPlotData::setApplyColor() {
 
 	switch (ink) {
 	case kInkTypeMatte:
-	case kInkTypeMask:
 	case kInkTypeCopy:
 	case kInkTypeNotCopy:
 		applyColor = (foreColor != colorBlack) || (backColor != colorWhite);


Commit: 2bda4c93349314abf11e69d567bd0bc957de7734
    https://github.com/scummvm/scummvm/commit/2bda4c93349314abf11e69d567bd0bc957de7734
Author: Nick Nissen (nickknissen at gmail.com)
Date: 2026-11-18T22:15:07+01:00

Commit Message:
GRAPHICS: Use Unicode for text drawn with TrueType fonts

When a Mac font family falls back to a TrueType font, text was still encoded as Mac Roman, so non-ASCII letters drew as other glyphs.
Use UTF-8 when the resolved font is TrueType, and resolve the font again when a run's font or slant changes.
Fixes æ, ø and å in the Danish Skipper & Skeeto subtitles.

Changed paths:
    graphics/macgui/macfontmanager.cpp
    graphics/macgui/macfontmanager.h
    graphics/macgui/mactext.cpp


diff --git a/graphics/macgui/macfontmanager.cpp b/graphics/macgui/macfontmanager.cpp
index 533e3e81cb8..f82f4270687 100644
--- a/graphics/macgui/macfontmanager.cpp
+++ b/graphics/macgui/macfontmanager.cpp
@@ -824,6 +824,23 @@ Common::Language MacFontManager::getFontLanguage(uint16 id) {
 	return _fontInfo[id]->lang;
 }
 
+bool MacFontManager::isUnicodeFont(const Font *font) const {
+	if (!font)
+		return false;
+
+	// TrueType fonts take Unicode code points, even when the requested
+	// family normally uses a legacy bitmap encoding (e.g. Arial fallback).
+	for (const auto &entry : _uniFontRegistry) {
+		if (entry._value == font)
+			return true;
+	}
+	for (const auto &entry : _fontRegistry) {
+		if (entry._value->getFont() == font && entry._value->isTrueType())
+			return true;
+	}
+	return false;
+}
+
 Common::CodePage MacFontManager::getFontEncoding(uint16 id) {
 	if (!_fontInfo.contains(id)) {
 		warning("MacFontManager::getFontEncoding: No _fontInfo entry for font ID %d", id);
diff --git a/graphics/macgui/macfontmanager.h b/graphics/macgui/macfontmanager.h
index e56fcf2e155..a8181627924 100644
--- a/graphics/macgui/macfontmanager.h
+++ b/graphics/macgui/macfontmanager.h
@@ -182,6 +182,7 @@ public:
 
 	Common::Language getFontLanguage(uint16 id);
 	Common::CodePage getFontEncoding(uint16 id);
+	bool isUnicodeFont(const Font *font) const;
 	int getFontAliasForId(uint16 id);
 	Common::String getFontName(uint16 id);
 
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp
index cce12f20d78..10416f5b9bd 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -68,7 +68,11 @@ bool MacFontRun::equals(MacFontRun &to) {
 }
 
 Common::CodePage MacFontRun::getEncoding() {
-	if (wm->_mode & kWMModeWin95)
+	// Resolve the actual font before choosing an encoding. A legacy font
+	// family can fall back to a Unicode TrueType font; encoding its text as
+	// Mac Roman would turn non-ASCII letters into unrelated glyphs.
+	const Font *resolvedFont = getFont();
+	if ((wm->_mode & kWMModeWin95) || wm->_fontMan->isUnicodeFont(resolvedFont))
 		return Common::kUtf8;
 	return wm->_fontMan->getFontEncoding(fontId);
 }
@@ -452,6 +456,8 @@ void MacText::enforceTextFont(uint16 fontId) {
 	for (uint i = 0; i < _canvas._text.size(); i++) {
 		for (uint j = 0; j < _canvas._text[i].chunks.size(); j++) {
 			_canvas._text[i].chunks[j].fontId = fontId;
+			_canvas._text[i].chunks[j].font = nullptr;
+			_canvas._text[i].chunks[j].getFont();
 		}
 	}
 
@@ -580,6 +586,8 @@ void MacText::setTextChunks(int start, int end, int param, void (*callback)(MacF
 
 void setTextFontCallback(MacFontRun &macFontRun, int fontId) {
 	macFontRun.fontId = fontId;
+	macFontRun.font = nullptr;
+	macFontRun.getFont();
 }
 
 void MacText::setTextFont(int fontId, int start, int end) {
@@ -588,6 +596,8 @@ void MacText::setTextFont(int fontId, int start, int end) {
 
 void setTextSlantCallback(MacFontRun &macFontRun, int textSlant) {
 	macFontRun.textSlant = textSlant;
+	macFontRun.font = nullptr;
+	macFontRun.getFont();
 }
 
 void MacText::setTextSlant(int textSlant, int start, int end) {
@@ -598,6 +608,8 @@ void MacText::enforceTextSlant(int textSlant) {
 	for (uint i = 0; i < _canvas._text.size(); i++) {
 		for (uint j = 0; j < _canvas._text[i].chunks.size(); j++) {
 			_canvas._text[i].chunks[j].textSlant = textSlant;
+			_canvas._text[i].chunks[j].font = nullptr;
+			_canvas._text[i].chunks[j].getFont();
 		}
 	}
 




More information about the Scummvm-git-logs mailing list