diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-02 00:22:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-02 00:22:00 +0300 |
commit | 0799b9ee020ea7236fec04df15b31b88507f1443 (patch) | |
tree | 6b6cd55bd4e83fbb184645ec0911f0aa669d37d7 | |
parent | d4464b7c70f7d969a39d0a0e20b1e8d1ccebefcd (diff) | |
download | mv-0799b9ee020ea7236fec04df15b31b88507f1443.tar.gz mv-0799b9ee020ea7236fec04df15b31b88507f1443.tar.bz2 mv-0799b9ee020ea7236fec04df15b31b88507f1443.tar.xz mv-0799b9ee020ea7236fec04df15b31b88507f1443.zip |
Fix compilation warnings.
-rw-r--r-- | src/resources/sdlimagehelper.cpp | 4 |
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); |