diff options
author | Eugene Sandulenko | 2006-05-26 00:17:55 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-05-26 00:17:55 +0000 |
commit | 9828eb7a0b9fc96f919cbd2966ace4faf5f4515b (patch) | |
tree | b578869c391b4c9bf34274108d0f9a941a8854de /gui/console.h | |
parent | 79819da301f606d799e0f3b8709c37c4cd685238 (diff) | |
download | scummvm-rg350-9828eb7a0b9fc96f919cbd2966ace4faf5f4515b.tar.gz scummvm-rg350-9828eb7a0b9fc96f919cbd2966ace4faf5f4515b.tar.bz2 scummvm-rg350-9828eb7a0b9fc96f919cbd2966ace4faf5f4515b.zip |
Properly process screen change event in console
svn-id: r22643
Diffstat (limited to 'gui/console.h')
-rw-r--r-- | gui/console.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/console.h b/gui/console.h index 8bd1569c42..083b3a9420 100644 --- a/gui/console.h +++ b/gui/console.h @@ -31,6 +31,7 @@ namespace GUI { enum { kBufferSize = 32768, + kLineWidth = 128, kLineBufferSize = 256, kHistorySize = 20 @@ -49,7 +50,7 @@ protected: char _buffer[kBufferSize]; int _linesInBuffer; - int _lineWidth; + int _pageWidth; int _linesPerPage; int _currentPos; @@ -123,6 +124,8 @@ protected: return _buffer[idx % kBufferSize]; } + void init(); + void drawCaret(bool erase); void putcharIntern(int c); void insertIntoPrompt(const char *str); |