[Scummvm-cvs-logs] CVS: scummvm/gui about.cpp,1.15,1.16

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


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

Modified Files:
	about.cpp 
Log Message:
Small tweak to get rid of a warning on systems where type uint is not equal to uint32

Index: about.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/about.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- about.cpp	20 Dec 2004 00:08:38 -0000	1.15
+++ about.cpp	20 Dec 2004 21:12:54 -0000	1.16
@@ -236,7 +236,7 @@
 	// Draw text
 	// TODO: Add a "fade" effect for the top/bottom text lines
 	const int firstLine = _scrollPos / _lineHeight;
-	const int lastLine = MIN((_scrollPos + _h) / _lineHeight + 1, _lines.size());
+	const int lastLine = MIN((uint)(_scrollPos + _h) / _lineHeight + 1, _lines.size());
 	int y = _y + kYOff - (_scrollPos % _lineHeight);
 
 	for (int line = firstLine; line < lastLine; line++) {





More information about the Scummvm-git-logs mailing list