aboutsummaryrefslogtreecommitdiff
path: root/gui/console.h
diff options
context:
space:
mode:
authorMax Horn2004-05-05 23:06:44 +0000
committerMax Horn2004-05-05 23:06:44 +0000
commit71df4c5e726deca772faef6993327bad360ddc29 (patch)
tree1e05b8951200df44c9ffd90b670b2f0bf77fa5ba /gui/console.h
parent0637bb70a7db21e5c2db49d09ec878cfc0c900db (diff)
downloadscummvm-rg350-71df4c5e726deca772faef6993327bad360ddc29.tar.gz
scummvm-rg350-71df4c5e726deca772faef6993327bad360ddc29.tar.bz2
scummvm-rg350-71df4c5e726deca772faef6993327bad360ddc29.zip
Cleaned up console code a bit - wrap around logic needs work
svn-id: r13793
Diffstat (limited to 'gui/console.h')
-rw-r--r--gui/console.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/console.h b/gui/console.h
index aa485df352..d59fb9c56f 100644
--- a/gui/console.h
+++ b/gui/console.h
@@ -104,13 +104,16 @@ public:
}
protected:
+ inline char &buffer(int idx) {
+ return _buffer[idx % kBufferSize];
+ }
+
void drawCaret(bool erase);
void putcharIntern(int c);
void insertIntoPrompt(const char *str);
void print(const char *str);
void updateScrollBar();
void scrollToCurrent();
- inline int getBufferPos() const { return _currentPos % kBufferSize; }
// Line editing
void specialKeys(int keycode);