Ticket #8514: console_pgdown.patch

File console_pgdown.patch, 746 bytes (added by wjp, 18 years ago)

console_pgdown.patch

  • gui/console.cpp

    RCS file: /cvsroot/scummvm/scummvm/gui/console.cpp,v
    retrieving revision 1.72
    diff -u -r1.72 console.cpp
     
    310310        case 256 + 25:  // pagedown
    311311                if (modifiers == OSystem::KBD_SHIFT) {
    312312                        _scrollLine += _linesPerPage - 1;
    313                         if (_scrollLine > _promptEndPos / _lineWidth)
     313                        if (_scrollLine > _promptEndPos / _lineWidth) {
    314314                                _scrollLine = _promptEndPos / _lineWidth;
     315                                if (_scrollLine < _firstLineInBuffer + _linesPerPage - 1)
     316                                        _scrollLine = _firstLineInBuffer + _linesPerPage - 1;
     317                        }
    315318                        updateScrollBuffer();
    316319                        draw();
    317320                }