[Scummvm-cvs-logs] CVS: scummvm/gui console.cpp,1.65,1.66

Chris Apers chrilith at users.sourceforge.net
Sat Sep 3 09:23:04 CEST 2005


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

Modified Files:
	console.cpp 
Log Message:
Change PalmOS ident

Index: console.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/console.cpp,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- console.cpp	14 Jul 2005 06:58:06 -0000	1.65
+++ console.cpp	3 Sep 2005 16:21:57 -0000	1.66
@@ -1,656 +1,656 @@
-/* ScummVM - Scumm Interpreter
- * Copyright (C) 2002-2005 The ScummVM project
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
[...1281 lines suppressed...]
+		g_gui.fillRect(x, y, kConsoleCharWidth, kConsoleLineHeight, g_gui._textcolor);
+		g_gui.drawChar(c, x, y + 2, g_gui._bgcolor, &g_consolefont);
+	}
+	g_gui.addDirtyRect(x, y, kConsoleCharWidth, kConsoleLineHeight);
+
+	_caretVisible = !erase;
+}
+
+void ConsoleDialog::scrollToCurrent() {
+	int line = _promptEndPos / _lineWidth;
+
+	if (line + _linesPerPage <= _scrollLine) {
+		// TODO - this should only occur for loong edit lines, though
+	} else if (line > _scrollLine) {
+		_scrollLine = line;
+		updateScrollBuffer();
+	}
+}
+
+} // End of namespace GUI





More information about the Scummvm-git-logs mailing list