From f3a1aa73b33869302d14cc7148957a1270ffdf7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Andersson?= Date: Wed, 9 Jul 2003 16:54:34 +0000 Subject: [PATCH] Fix character spacing for LINC terminals in v0.0288 as well. I've only tested is a little on a borrowed copy of BASS, but I think it should look the same as v0.0372 now. svn-id: r8881 --- sky/text.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sky/text.cpp b/sky/text.cpp index 8e24211ac8e..06f8bbf6852 100644 --- a/sky/text.cpp +++ b/sky/text.cpp @@ -49,6 +49,15 @@ SkyText::SkyText(SkyDisk *skyDisk) { _controlCharacterSet.addr = _skyDisk->loadFile(60520, NULL); _controlCharacterSet.charHeight = 12; _controlCharacterSet.charSpacing = 0; + + // In version 0.0288, decrease the character width for the + // LINC terminal font by one for every character, except + // space which has to be one pixel wider instead. + if (SkyState::_systemVars.gameVersion == 288) { + for (int i = 1; i < CHAR_SET_HEADER; i++) + _controlCharacterSet.addr[i]--; + _controlCharacterSet.addr[0]++; + } _linkCharacterSet.addr = _skyDisk->loadFile(60521, NULL); _linkCharacterSet.charHeight = 12;