Author: mordante
Date: Sun Mar 29 22:29:43 2009
New Revision: 34249

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34249&view=rev
Log:
Converted the old style casts to c++ style casts.

Modified:
    trunk/src/display.cpp

Modified: trunk/src/display.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.cpp?rev=34249&r1=34248&r2=34249&view=diff
==============================================================================
--- trunk/src/display.cpp (original)
+++ trunk/src/display.cpp Sun Mar 29 22:29:43 2009
@@ -1718,8 +1718,8 @@
 
                // we do not want to be only inside the screen rect, but center 
a bit more
                double inside_frac = 0.5; // 0.0 = always center the target, 
1.0 = scroll the minimum distance
-               w = (int)(w * inside_frac);
-               h = (int)(h * inside_frac);
+               w = static_cast<int>(w * inside_frac);
+               h = static_cast<int>(h * inside_frac);
 
                // shrink the rectangle by the size of the locations rectangle 
we found
                // such that the new task to fit a point into a rectangle 
instead of rectangle into rectangle


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to