[Scummvm-git-logs] scummvm master -> d3de644b6258e5e910c0b11c324078e93cf8de82
eriktorbjorn
eriktorbjorn at telia.com
Tue Oct 12 18:16:06 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:
d3de644b62 SCUMM: Space lines in Indy 3 text boxes like the original (bug #12983)
Commit: d3de644b6258e5e910c0b11c324078e93cf8de82
https://github.com/scummvm/scummvm/commit/d3de644b6258e5e910c0b11c324078e93cf8de82
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2021-10-12T20:14:08+02:00
Commit Message:
SCUMM: Space lines in Indy 3 text boxes like the original (bug #12983)
I didn't think anyone would notice that the lines of the Indy 3 text
boxes were spaced slightly differently in ScummVM than in the original.
I realized it wouldn't be as tricky as first thought to fix that, though
I may clean it up a bit later.
This fixes a tiny part of bug #12983.
Changed paths:
engines/scumm/charset.cpp
diff --git a/engines/scumm/charset.cpp b/engines/scumm/charset.cpp
index 997e6f16fb..1b14bc439f 100644
--- a/engines/scumm/charset.cpp
+++ b/engines/scumm/charset.cpp
@@ -1933,6 +1933,14 @@ void CharsetRendererMac::printCharToTextBox(int chr, int color, int x, int y) {
if (_vm->_renderMode == Common::kRenderMacintoshBW)
color = 15;
+ // Since we're working with unscaled coordinates most of the time, the
+ // lines of the text box weren't spaced quite as much as in the
+ // original. I thought no one would notice, but I was wrong. This is
+ // the best way I can think of to fix that.
+
+ if (y > 0)
+ y++;
+
_macFonts[_curId].drawChar(_vm->_macIndy3TextBox, chr, x + 5, y + 11, color);
}
More information about the Scummvm-git-logs
mailing list