projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a53d1dc
)
- fixed warnings--hopefully this doesn't break anything (ie error checking)
author
Ryan Flegel
<rflegel@gmail.com>
Fri, 15 Oct 2004 22:40:47 +0000
(22:40 +0000)
committer
Ryan Flegel
<rflegel@gmail.com>
Fri, 15 Oct 2004 22:40:47 +0000
(22:40 +0000)
SVN-Revision: 2017
lib/video/font.cpp
patch
|
blob
|
history
diff --git
a/lib/video/font.cpp
b/lib/video/font.cpp
index
a2a5922
..
6c19b8b
100644
(file)
--- 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);