diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:48:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:48:01 +0300 |
commit | cd0de3bd2668294ab3174d3b5f032fefc25fa0e8 (patch) | |
tree | 54942df2cad49260ae466c23fc2af4ec64c03dfb /src/utils/sdlpixel.h | |
parent | 454508376039429ad292de69cd491badda798062 (diff) | |
download | mv-cd0de3bd2668294ab3174d3b5f032fefc25fa0e8.tar.gz mv-cd0de3bd2668294ab3174d3b5f032fefc25fa0e8.tar.bz2 mv-cd0de3bd2668294ab3174d3b5f032fefc25fa0e8.tar.xz mv-cd0de3bd2668294ab3174d3b5f032fefc25fa0e8.zip |
Fix code style in utils.
Diffstat (limited to 'src/utils/sdlpixel.h')
-rw-r--r-- | src/utils/sdlpixel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/sdlpixel.h b/src/utils/sdlpixel.h index 282b90afb..5152a68c2 100644 --- a/src/utils/sdlpixel.h +++ b/src/utils/sdlpixel.h @@ -86,7 +86,7 @@ inline void SDLputPixel(SDL_Surface* surface, int x, int y, SDL_LockSurface(surface); Uint8 *const p = static_cast<uint8_t*>(surface->pixels) - + y * surface->pitch + x * bpp; + + static_cast<size_t>(y * surface->pitch + x * bpp); const Uint32 pixel = SDL_MapRGB(surface->format, static_cast<uint8_t>(color.r), static_cast<uint8_t>(color.g), @@ -183,7 +183,7 @@ inline void SDLputPixelAlpha(SDL_Surface* surface, int x, int y, SDL_LockSurface(surface); Uint8 *const p = static_cast<uint8_t*>(surface->pixels) - + y * surface->pitch + x * bpp; + + static_cast<size_t>(y * surface->pitch + x * bpp); const Uint32 pixel = SDL_MapRGB(surface->format, static_cast<uint8_t>(color.r), |