mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
SCUMM: (MI1 - EGA/VGA) - fix bug no. 13762 (Inaccurate text position)
This concerns only the vertical positioning, not the wrapping. Currently, I have limited it to MI1 EGA and VGA.
This commit is contained in:
@@ -690,10 +690,13 @@ void ScummEngine::CHARSET_1() {
|
||||
_string[0].ypos = a->getPos().y - a->getElevation() - _screenTop;
|
||||
|
||||
if (_game.version <= 5) {
|
||||
|
||||
if (VAR(VAR_V5_TALK_STRING_Y) < 0) {
|
||||
s = (a->_scaley * (int)VAR(VAR_V5_TALK_STRING_Y)) / 0xFF;
|
||||
_string[0].ypos += (int)(((VAR(VAR_V5_TALK_STRING_Y) - s) / 2) + s);
|
||||
if (_game.id == GID_MONKEY_EGA || _game.id == GID_MONKEY_VGA) {
|
||||
_string[0].ypos = (int)VAR(VAR_V5_TALK_STRING_Y) + a->getPos().y + a->getElevation();
|
||||
} else {
|
||||
s = (a->_scaley * (int)VAR(VAR_V5_TALK_STRING_Y)) / 0xFF;
|
||||
_string[0].ypos += (int)(((VAR(VAR_V5_TALK_STRING_Y) - s) / 2) + s);
|
||||
}
|
||||
} else {
|
||||
_string[0].ypos = (int)VAR(VAR_V5_TALK_STRING_Y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user