ACCESS: MM - Fix a bug in doBox_v1, implement some TYPE_3 code

This commit is contained in:
Strangerke 2015-02-13 07:20:31 +01:00
parent 232775c5b3
commit 2fe58fac48
2 changed files with 16 additions and 4 deletions

View File

@ -507,13 +507,24 @@ int BubbleBox::doBox_v1(int item, int box, int &btnSelected) {
tmpY = BOXENDY = _vm->_screen->_orgY1;
if (_type == TYPE_3)
BICONSTARTY = tmpY - 7;
BICONSTARTY = tmpY + 9;
else
BICONSTARTY = tmpY + 1;
if (_type == TYPE_3)
warning("TODO: Implement more of TYPE_3");
if (_type == TYPE_3) {
_fileStart = Common::Point((tmpX + 2) >> 3, (tmpY + 2) >> 3);
int rowOff = tmpY - (_fileStart.y << 3) + 1;
if (rowOff == 8) {
rowOff = 0;
++_fileStart.y;
}
_fileOff.y = _rowOff = rowOff;
SETCURSORPOS(_fileStart.x, _fileStart.y);
_vm->_fonts._charFor._lo = 0xF7;
_vm->_fonts._charFor._hi = 0;
PRINTSTR("FILE: ");
_vm->_fonts._charFor._hi = 0xFF;
}
_vm->_screen->_orgY1 = oldY;
}

View File

@ -43,6 +43,7 @@ private:
int _startItem, _startBox;
int _charCol, _rowOff;
Common::Point _fileStart;
Common::Point _fileOff;
int BOXSTARTX, BOXSTARTY;
int BOXENDX, BOXENDY;
int BICONSTARTX, BICONSTARTY;