summaryrefslogtreecommitdiff
path: root/src/resources/sdlimagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-02 00:22:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-02 00:22:00 +0300
commit0799b9ee020ea7236fec04df15b31b88507f1443 (patch)
tree6b6cd55bd4e83fbb184645ec0911f0aa669d37d7 /src/resources/sdlimagehelper.cpp
parentd4464b7c70f7d969a39d0a0e20b1e8d1ccebefcd (diff)
downloadplus-0799b9ee020ea7236fec04df15b31b88507f1443.tar.gz
plus-0799b9ee020ea7236fec04df15b31b88507f1443.tar.bz2
plus-0799b9ee020ea7236fec04df15b31b88507f1443.tar.xz
plus-0799b9ee020ea7236fec04df15b31b88507f1443.zip
Fix compilation warnings.
Diffstat (limited to 'src/resources/sdlimagehelper.cpp')
-rw-r--r--src/resources/sdlimagehelper.cpp4
1 files changed, 2 insertions, 2 deletions
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<int16_t>(x), static_cast<int16_t>(y),
+ static_cast<uint16_t>(surface->w), static_cast<uint16_t>(surface->h)
};
SDL_BlitSurface(surface, nullptr, image->mSDLSurface, &rect);