diff --git a/navy-apps/libs/libminiSDL/src/video.c b/navy-apps/libs/libminiSDL/src/video.c index 2c99b7a..a9f2daa 100644 --- a/navy-apps/libs/libminiSDL/src/video.c +++ b/navy-apps/libs/libminiSDL/src/video.c @@ -15,8 +15,8 @@ void SDL_BlitSurface(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_ }; for (int i = 0; i < rect.h; i ++) { - memcpy((uint32_t*)dst->pixels + (rect.y + i) * dst->w + rect.x, - (uint32_t*)src->pixels + (srcrect->y + i) * src->w + srcrect->x, rect.w); + memcpy(((uint32_t*)dst->pixels) + (rect.y + i) * dst->w + rect.x, + ((uint32_t*)src->pixels) + (srcrect->y + i) * src->w + srcrect->x, rect.w); } }