mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 09:56:30 +00:00
Changed computation of _nextTop in v7/v8 games to represent an absolute y-coordinate (ie. not relative to _screenTop) in order to match the computation done for games <= v6. This should prevent any issues with vertical scrolling rooms.
svn-id: r25264
This commit is contained in:
parent
5bf2396dd8
commit
9b9117d0c6
@ -507,7 +507,7 @@ void ScummEngine::CHARSET_1() {
|
||||
#ifndef DISABLE_SCUMM_7_8
|
||||
((ScummEngine_v7 *)this)->clearSubtitleQueue();
|
||||
_nextLeft = _string[0].xpos;
|
||||
_nextTop = _string[0].ypos;
|
||||
_nextTop = _string[0].ypos + _screenTop;
|
||||
#endif
|
||||
} else {
|
||||
restoreCharsetBg();
|
||||
@ -583,7 +583,8 @@ void ScummEngine::CHARSET_1() {
|
||||
#ifndef DISABLE_SCUMM_7_8
|
||||
if (subtitleLine == subtitleBuffer) {
|
||||
subtitlePos.x = _charset->_left;
|
||||
subtitlePos.y = _charset->_top;
|
||||
// BlastText position is relative to the top of the screen, adjust y-coordinate
|
||||
subtitlePos.y = _charset->_top - _screenTop;
|
||||
}
|
||||
*subtitleLine++ = c;
|
||||
*subtitleLine = '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user