[Scummvm-git-logs] scummvm master -> c190e91ce1558956c5a5c03b95c5cc882d949b45
bluegr
noreply at scummvm.org
Thu May 1 19:39:20 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:
c190e91ce1 SCUMM: Fix encoding of some message dialogs with `original_gui=false`
Commit: c190e91ce1558956c5a5c03b95c5cc882d949b45
https://github.com/scummvm/scummvm/commit/c190e91ce1558956c5a5c03b95c5cc882d949b45
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2025-05-01T22:39:17+03:00
Commit Message:
SCUMM: Fix encoding of some message dialogs with `original_gui=false`
In the `original_gui=false` code paths, queryResString() -- itself
calling getDialogCodePage() -- is never called, and so proper
decoding support was incomplete.
Fixes Ctrl-V output in ScummVM's own UI with French DOTT.
Changed paths:
engines/scumm/string.cpp
diff --git a/engines/scumm/string.cpp b/engines/scumm/string.cpp
index 804785badcf..6877984f75b 100644
--- a/engines/scumm/string.cpp
+++ b/engines/scumm/string.cpp
@@ -162,7 +162,7 @@ void ScummEngine::showMessageDialog(const byte *msg) {
else
VAR(VAR_KEYPRESS) = showOldStyleBannerAndPause((const char *)msg, _string[3].color, -1).ascii;
} else {
- InfoDialog dialog(this, Common::U32String((char *)buf));
+ InfoDialog dialog(this, Common::U32String((char *)buf, getDialogCodePage()));
VAR(VAR_KEYPRESS) = runDialog(dialog);
}
More information about the Scummvm-git-logs
mailing list