RCS file: /cvsroot/scummvm/scummvm/gui/console.cpp,v
retrieving revision 1.72
diff -u -r1.72 console.cpp
|
|
|
310 | 310 | case 256 + 25: // pagedown |
311 | 311 | if (modifiers == OSystem::KBD_SHIFT) { |
312 | 312 | _scrollLine += _linesPerPage - 1; |
313 | | if (_scrollLine > _promptEndPos / _lineWidth) |
| 313 | if (_scrollLine > _promptEndPos / _lineWidth) { |
314 | 314 | _scrollLine = _promptEndPos / _lineWidth; |
| 315 | if (_scrollLine < _firstLineInBuffer + _linesPerPage - 1) |
| 316 | _scrollLine = _firstLineInBuffer + _linesPerPage - 1; |
| 317 | } |
315 | 318 | updateScrollBuffer(); |
316 | 319 | draw(); |
317 | 320 | } |