diff options
Diffstat (limited to 'gui/console.cpp')
-rw-r--r-- | gui/console.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gui/console.cpp b/gui/console.cpp index 37d3bd6aa5..a53e97888b 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -156,7 +156,9 @@ void ConsoleDialog::open() { _slideMode = kDownSlideMode; Dialog::open(); - if (_promptStartPos == -1) { + if ((_promptStartPos == -1) || (_currentPos > _promptEndPos)) { + // we print a prompt, if this is the first time we are called or if the + // engine wrote onto us since the last call print(PROMPT); _promptStartPos = _promptEndPos = _currentPos; } @@ -667,11 +669,7 @@ int ConsoleDialog::printf(const char *format, ...) { } int ConsoleDialog::vprintf(const char *format, va_list argptr) { -#ifdef PALMOS_MODE - char buf[256]; -#else char buf[2048]; -#endif #if defined(WIN32) int count = _vsnprintf(buf, sizeof(buf), format, argptr); |