From 03efd040feb8016f4f53bae0e49dbf3969385c12 Mon Sep 17 00:00:00 2001 From: Ryan Flegel Date: Fri, 15 Oct 2004 22:40:47 +0000 Subject: [PATCH] - fixed warnings--hopefully this doesn't break anything (ie error checking) SVN-Revision: 2017 --- lib/video/font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.11.0