mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 19:30:41 +00:00
Call handleScreenChanged() when opening the console. Otherwise, we may get
garbage and/or crashes if the scaler has changed since the console was created. svn-id: r23480
This commit is contained in:
parent
dcb59be8b7
commit
6eecad5722
3
NEWS
3
NEWS
@ -15,6 +15,9 @@ For a more comprehensive changelog for the latest experimental SVN code, see:
|
||||
- Fixed various actor walking issues.
|
||||
|
||||
0.9.1 (????-??-??)
|
||||
General:
|
||||
- Fixed potential garbage and/or crash in debug console.
|
||||
|
||||
SCUMM
|
||||
- Improved support for international versions of HE games.
|
||||
- Fixed rare actor drawing glitches.
|
||||
|
@ -157,6 +157,13 @@ void ConsoleDialog::open() {
|
||||
_slideTime = g_system->getMillis();
|
||||
_slideMode = kDownSlideMode;
|
||||
|
||||
// The screen may have changed since the console was created. We have
|
||||
// to make sure things are properly adjusted, or we may get garbage in
|
||||
// the console, or even outright crashes. This means _scrollLine is not
|
||||
// preserved, but that's a tiny sacrifice.
|
||||
|
||||
handleScreenChanged();
|
||||
|
||||
Dialog::open();
|
||||
if (_promptStartPos == -1) {
|
||||
print(PROMPT);
|
||||
|
Loading…
Reference in New Issue
Block a user