text in zak is now using the incorrect font and it does nasty stuff like overlapping text as well, but this makes zak work again to set values of work, someone please fix this before 0.4.0

svn-id: r6942
This commit is contained in:
Jonathan Gray 2003-04-08 22:15:46 +00:00
parent 00a2bc9127
commit d8d2a38f7f

View file

@ -144,7 +144,7 @@ void Scumm::CHARSET_1() {
_charset->_right = _string[0].right;
_charset->_color = _charsetColor;
if (!(_features & GF_AFTER_V3)) // FIXME
if (!(_features & GF_OLD256)) // FIXME
for (i = 0; i < 4; i++)
_charsetColorMap[i] = _charsetData[_charset->getCurID()][i];
@ -187,7 +187,7 @@ void Scumm::CHARSET_1() {
_talkDelay = _defaultTalkDelay;
if (!_keepText) {
if (_features & GF_AFTER_V3) {
if (_features & GF_OLD256) {
gdi._mask_left = _string[0].xpos;
gdi._mask_top = _string[0].ypos;
gdi._mask_bottom = _string[0].ypos + 8;
@ -227,7 +227,7 @@ void Scumm::CHARSET_1() {
}
if (c == 13) {
newLine:;
if (_features & GF_AFTER_V3) {
if (_features & GF_OLD256) {
_charset->_nextTop = 8;
_charset->_nextLeft = 0;
continue;
@ -248,7 +248,7 @@ void Scumm::CHARSET_1() {
if (c != 0xFF) {
_charset->_left = _charset->_nextLeft;
_charset->_top = _charset->_nextTop;
if (_features & GF_AFTER_V3) {
if (_features & GF_OLD256) {
_charset->printChar(c);
} else if (_features & GF_AFTER_V6) {
if (!_noSubtitles || (_haveMsg != 0xFE && _haveMsg != 0xFF))
@ -410,7 +410,7 @@ void Scumm::drawString(int a) {
_charset->_disableOffsX = _charset->_firstChar = true;
_charset->setCurID(_string[a].charset);
if (!(_features & GF_AFTER_V3)) {
if (!(_features & GF_OLD256)) {
for (i = 0; i < 4; i++)
_charsetColorMap[i] = _charsetData[_charset->getCurID()][i];
@ -749,6 +749,11 @@ void Scumm::addStringToStack(int var) {
void Scumm::initCharset(int charsetno) {
int i;
if (_gameId == GID_ZAK256) {
debug(0, "initCharset: FIXME using incorrect charset");
charsetno = !charsetno;
}
if (_features & GF_SMALL_HEADER)
loadCharset(charsetno);
else if (!getResourceAddress(rtCharset, charsetno))