[Scummvm-git-logs] scummvm master -> 221f9c955f7cbb5ef01c0bbe33ff18cf57640fc8
athrxx
noreply at scummvm.org
Mon Aug 15 21:12:36 UTC 2022
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:
221f9c955f SCUMM: cleanup b4185bdf
Commit: 221f9c955f7cbb5ef01c0bbe33ff18cf57640fc8
https://github.com/scummvm/scummvm/commit/221f9c955f7cbb5ef01c0bbe33ff18cf57640fc8
Author: athrxx (athrxx at scummvm.org)
Date: 2022-08-15T23:11:54+02:00
Commit Message:
SCUMM: cleanup b4185bdf
Extend change to the versions to which it applies and update comment.
Changed paths:
engines/scumm/charset.cpp
diff --git a/engines/scumm/charset.cpp b/engines/scumm/charset.cpp
index c35be846056..cad47038cc5 100644
--- a/engines/scumm/charset.cpp
+++ b/engines/scumm/charset.cpp
@@ -457,14 +457,11 @@ int CharsetRendererClassic::getCharWidth(uint16 chr) const {
int CharsetRenderer::getStringWidth(int arg, const byte *text) {
int pos = 0;
- // I have confirmed from disasm that LOOM EGA and FM-TOWNS (EN/JP) do not add 1 to the width
- // while LOOM VGA Talkie and MONKEY1 EGA do. So that seems to have been introduced with version 4.
- // TODO: Check other v1-3 games. Loom IS the only game in that version range that has charset mask
- // (overlaying) text display, the others are limited to top screen and verb screen. So it might not
- // be that relevant....
- int width = 1;
- if (_vm->_game.id == GID_FT || (_vm->_game.id == GID_LOOM && _vm->_game.version < 4))
- width = 0;
+ // I have confirmed from disasm that neither LOOM EGA and FM-TOWNS (EN/JP) nor any other games withing the
+ // v0-v3 version range add 1 to the width. There isn't even a getStringWidth method. And the v0-2 games don't
+ // even support text rendering over strip borders. However, LOOM VGA Talkie and MONKEY1 EGA do have the
+ // getStringWidth method and they do add 1 to the width. So that seems to have been introduced with version 4.
+ int width = (_vm->_game.version < 4 || _vm->_game.id == GID_FT) ? 0 : 1;
int chr;
int oldID = getCurID();
More information about the Scummvm-git-logs
mailing list