diff options
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), |