mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 07:23:05 +00:00
removed hardcoded values
svn-id: r5328
This commit is contained in:
parent
6e3e0d4f54
commit
9c09596802
@ -219,8 +219,8 @@ void Scumm::CHARSET_1()
|
||||
|
||||
if (_string[0].xpos < 80)
|
||||
_string[0].xpos = 80;
|
||||
if (_string[0].xpos > 240)
|
||||
_string[0].xpos = 240;
|
||||
if (_string[0].xpos > _realWidth - 80)
|
||||
_string[0].xpos = _realWidth - 80;
|
||||
} else {
|
||||
s = a->scaley * a->new_1 / 0xFF;
|
||||
_string[0].ypos = ((a->new_1 - s) >> 1) + s - a->elevation + a->y;
|
||||
@ -234,8 +234,8 @@ void Scumm::CHARSET_1()
|
||||
_string[0].xpos = ((a->new_2 - s) >> 1) + s + a->x - camera._cur.x + (_realWidth / 2);
|
||||
if (_string[0].xpos < 80)
|
||||
_string[0].xpos = 80;
|
||||
if (_string[0].xpos > 240)
|
||||
_string[0].xpos = 240;
|
||||
if (_string[0].xpos > _realWidth - 80)
|
||||
_string[0].xpos = _realWidth - 80;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1038,7 +1038,7 @@ void CharsetRenderer::printChar(int chr)
|
||||
}
|
||||
|
||||
_mask_ptr = _vm->getResourceAddress(rtBuffer, 9)
|
||||
+ _drawTop * 40 + _left / 8 + _vm->_screenStartStrip;
|
||||
+ _drawTop * _vm->gdi._numStrips + _left / 8 + _vm->_screenStartStrip;
|
||||
|
||||
_virtScreenHeight = vs->height;
|
||||
_charPtr += 4;
|
||||
|
Loading…
x
Reference in New Issue
Block a user