From d7c01997ac9fee164352e1e0a23d94171dd907b7 Mon Sep 17 00:00:00 2001 From: Ali El Gariani Date: Sun, 4 Nov 2007 19:50:35 +0000 Subject: [PATCH] fix some casting-warning --- src/intro.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intro.cpp b/src/intro.cpp index d1848220261..bd5fb603010 100644 --- a/src/intro.cpp +++ b/src/intro.cpp @@ -119,7 +119,7 @@ bool show_intro_part(display &disp, const config& part, double yscale = 1.0 * video.gety() / background->h; double scale = minimum(xscale,yscale); - background = scale_surface(background, background->w*scale, background->h*scale); + background = scale_surface(background, static_cast(background->w*scale), static_cast(background->h*scale)); dstrect.x = (video.getx() - background->w) / 2; dstrect.y = (video.gety() - background->h) / 2; @@ -193,7 +193,7 @@ bool show_intro_part(display &disp, const config& part, const int y = static_cast(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(img->w*scale), static_cast(img->h*scale)); } SDL_Rect image_rect;