Fix some warnings

This commit is contained in:
Bart van Strien
2011-12-27 21:25:06 +01:00
parent a855a01f02
commit 864c800e10
11 changed files with 49 additions and 25 deletions
+3 -3
View File
@@ -267,11 +267,11 @@ namespace opengl
// on wordwrap, push line to line buffer and clear string builder
if (width >= wrap && oldwidth > 0)
{
int realw = width;
int realw = (int) width;
lines_to_draw.push_back( string_builder.str() );
string_builder.str( "" );
width = static_cast<float>(getWidth( word ));
realw -= width;
realw -= (int) width;
if (realw > maxw)
maxw = realw;
}
@@ -281,7 +281,7 @@ namespace opengl
}
// push last line
if (width > maxw)
maxw = width;
maxw = (int) width;
lines_to_draw.push_back( string_builder.str() );
}