Author: jsalmon3
Date: 2007-08-17 18:31:53 +0200 (Fri, 17 Aug 2007)
New Revision: 2989

Modified:
   branches/pingus_sdl/src/font.cpp
Log:
Fixed warnings

Modified: branches/pingus_sdl/src/font.cpp
===================================================================
--- branches/pingus_sdl/src/font.cpp    2007-08-17 16:30:00 UTC (rev 2988)
+++ branches/pingus_sdl/src/font.cpp    2007-08-17 16:31:53 UTC (rev 2989)
@@ -166,7 +166,7 @@
 
   void draw(Origin origin, int x, int y_, const std::string& text, 
SDL_Surface* target)
   {
-    float y = y_;
+    float y = float(y_);
     // FIXME: only origins top_left, top_right and top_center to work right now
     LineIterator it(text);
     while(it.next()) {
@@ -179,8 +179,8 @@
   {
     Vector2i offset = calc_origin(origin, get_size(text));
 
-    float dstx = x - offset.x;
-    float dsty = y - offset.y;
+    float dstx = float(x - offset.x);
+    float dsty = float(y - offset.y);
 
     if (!target) target = Display::get_screen();
 



_______________________________________________
pingus-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/pingus-cvs

Reply via email to