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
This commit is contained in:
Torbjörn Andersson 2003-07-09 16:54:34 +00:00
parent 90bac4a5ce
commit f3a1aa73b3

View file

@ -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;