From: Ryan Flegel Date: Fri, 15 Oct 2004 22:40:47 +0000 (+0000) Subject: - fixed warnings--hopefully this doesn't break anything (ie error checking) X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=03efd040feb8016f4f53bae0e49dbf3969385c12;p=supertux.git - fixed warnings--hopefully this doesn't break anything (ie error checking) SVN-Revision: 2017 --- diff --git a/lib/video/font.cpp b/lib/video/font.cpp index a2a59227c..6c19b8bfb 100644 --- a/lib/video/font.cpp +++ b/lib/video/font.cpp @@ -75,7 +75,7 @@ Font::get_text_width(const std::string& text) const { /** 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 @@ Font::get_text_height(const std::string& text) const { /** 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);