[Scummvm-cvs-logs] CVS: scummvm/gui about.cpp,1.17,1.18

Max Horn fingolfin at users.sourceforge.net
Mon Dec 20 14:55:01 CET 2004


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

Modified Files:
	about.cpp 
Log Message:
cast fix, hopefully this helps PalmOS

Index: about.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/about.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- about.cpp	20 Dec 2004 22:02:20 -0000	1.17
+++ about.cpp	20 Dec 2004 22:54:20 -0000	1.18
@@ -238,7 +238,7 @@
 	// Draw text
 	// TODO: Add a "fade" effect for the top/bottom text lines
 	const int firstLine = _scrollPos / _lineHeight;
-	const int lastLine = MIN((uint)(_scrollPos + _h) / _lineHeight + 1, _lines.size());
+	const int lastLine = MIN((_scrollPos + _h) / _lineHeight + 1, (uint32)_lines.size());
 	int y = _y + kYOff - (_scrollPos % _lineHeight);
 
 	for (int line = firstLine; line < lastLine; line++) {





More information about the Scummvm-git-logs mailing list