[Super-tux-commit] supertux/lib/video font.cpp,1.11,1.12
Brought to you by:
wkendrick
From: Ryan F. <sik...@us...> - 2004-10-15 22:40:58
|
Update of /cvsroot/super-tux/supertux/lib/video In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20547/lib/video Modified Files: font.cpp Log Message: - fixed warnings--hopefully this doesn't break anything (ie error checking) Index: font.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/lib/video/font.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- font.cpp 12 Oct 2004 06:27:13 -0000 1.11 +++ font.cpp 15 Oct 2004 22:40:47 -0000 1.12 @@ -75,7 +75,7 @@ { /** Let's calculate the size of the biggest paragraph */ std::string::size_type l, hl; - hl = 0; l = -1; + hl = 0; l = 0; while(true) { l = text.find("\n", l+1); @@ -95,7 +95,7 @@ { /** Let's calculate height of the text */ std::string::size_type l, hh; - hh = h; l = -1; + hh = h; l = 0; while(true) { l = text.find("\n", l+1); |