Author: alink
Date: Sun Nov  4 20:50:35 2007
New Revision: 21492

URL: http://svn.gna.org/viewcvs/wesnoth?rev=21492&view=rev
Log:
fix some casting-warning

Modified:
    trunk/src/intro.cpp

Modified: trunk/src/intro.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/intro.cpp?rev=21492&r1=21491&r2=21492&view=diff
==============================================================================
--- trunk/src/intro.cpp (original)
+++ trunk/src/intro.cpp Sun Nov  4 20:50:35 2007
@@ -119,7 +119,7 @@
        double yscale = 1.0 * video.gety() / background->h;
        double scale = minimum<double>(xscale,yscale);
 
-       background = scale_surface(background, background->w*scale, 
background->h*scale);
+       background = scale_surface(background, 
static_cast<int>(background->w*scale), static_cast<int>(background->h*scale));
 
        dstrect.x = (video.getx() - background->w) / 2;
        dstrect.y = (video.gety() - background->h) / 2;
@@ -193,7 +193,7 @@
                        const int y = 
static_cast<int>(atoi(yloc.c_str())*scale);
 
                        if ((**i)["scaled"] == "yes"){
-                               img = scale_surface(img, img->w*scale, 
img->h*scale);
+                               img = scale_surface(img, 
static_cast<int>(img->w*scale), static_cast<int>(img->h*scale));
                        }
 
                        SDL_Rect image_rect;


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

Reply via email to