From 83cd0002076f1c45eb2b6e8c1c484961eb7eadcb Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 5 May 2004 23:08:30 +0000 Subject: Maybe this change will cure one of erik's two console bug reports (namely #941811). Maybe not svn-id: r13794 --- gui/console.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gui') diff --git a/gui/console.cpp b/gui/console.cpp index 68899dd6d5..054ae81b71 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -112,8 +112,12 @@ void ConsoleDialog::drawDialog() { for (int line = 0; line < _linesPerPage; line++) { int x = _x + 1; for (int column = 0; column < _lineWidth; column++) { +#if 0 int l = (start + line) % _linesInBuffer; byte c = buffer(l * _lineWidth + column); +#else + byte c = buffer((start + line) * _lineWidth + column); +#endif g_gui.drawChar(c, x, y, g_gui._textcolor); x += kCharWidth; } -- cgit v1.2.3