pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r2989 - branches/pingus_sdl/src


From: jsalmon3
Subject: [Pingus-CVS] r2989 - branches/pingus_sdl/src
Date: Fri, 17 Aug 2007 18:31:57 +0200

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();
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]