From 0799b9ee020ea7236fec04df15b31b88507f1443 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 2 Jul 2014 00:22:00 +0300 Subject: Fix compilation warnings. --- src/resources/sdlimagehelper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources') diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp index baf1125fa..2f9594487 100644 --- a/src/resources/sdlimagehelper.cpp +++ b/src/resources/sdlimagehelper.cpp @@ -294,8 +294,8 @@ void SDLImageHelper::copySurfaceToImage(Image *const image, SDL_SetAlpha(surface, 0, SDL_ALPHA_OPAQUE); SDL_Rect rect = { - x, y, - surface->w, surface->h + static_cast(x), static_cast(y), + static_cast(surface->w), static_cast(surface->h) }; SDL_BlitSurface(surface, nullptr, image->mSDLSurface, &rect); -- cgit v1.2.3-60-g2f50