[Scummvm-cvs-logs] CVS: scummvm/gui console.cpp,1.73,1.74

Max Horn fingolfin at users.sourceforge.net
Wed Feb 1 08:41:04 CET 2006


Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1704

Modified Files:
	console.cpp 
Log Message:
Patch #1420942 (console page down fix)

Index: console.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/console.cpp,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- console.cpp	31 Jan 2006 20:19:47 -0000	1.73
+++ console.cpp	1 Feb 2006 16:40:17 -0000	1.74
@@ -312,8 +312,11 @@
 	case 256 + 25:	// pagedown
 		if (modifiers == OSystem::KBD_SHIFT) {
 			_scrollLine += _linesPerPage - 1;
-			if (_scrollLine > _promptEndPos / _lineWidth)
+			if (_scrollLine > _promptEndPos / _lineWidth) {
 				_scrollLine = _promptEndPos / _lineWidth;
+				if (_scrollLine < _firstLineInBuffer + _linesPerPage - 1)
+					_scrollLine = _firstLineInBuffer + _linesPerPage - 1;
+			}
 			updateScrollBuffer();
 			draw();
 		}





More information about the Scummvm-git-logs mailing list