From 80f13e1973da26f804fbdee6616dc5a0a1a185b9 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Wed, 20 Nov 2002 13:58:23 +0000 Subject: [PATCH] add top arrow and indy3 to the inventory arrow fix. the spacing and text handling is pretty much identical by the way between indy3 and zak256. the intial code to make the text in both games readable included the original getSpacing I added in which the spacing was based on pixel comparisons of indy3. I see it has been refined somewhat since then :) svn-id: r5641 --- scumm/string.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scumm/string.cpp b/scumm/string.cpp index f31c25e7cbc..bb333816171 100644 --- a/scumm/string.cpp +++ b/scumm/string.cpp @@ -1125,9 +1125,12 @@ int CharsetRenderer::getSpacing(byte chr, byte *charset) } } } - - // FIXME - this fixes the inventory icons in Zak256, see bug #613109 - if (_vm->_gameId == GID_ZAK256 && (chr==3 || chr==4)) + + // FIXME - this fixes the inventory icons in Zak256/Indy3 + // see bug #613109. + // chars 1,2: up arrow chars 3,4: down arrow + if ((_vm->_gameId == GID_ZAK256 || _vm->_gameId == GID_INDY3_256) + && (chr >= 1 && chr <= 4)) spacing = 6; return spacing;