Fixed bug #7614: Segmentation Fault in SDL_BlitSurface

(cherry picked from commit e6c8872fdc8d9b8aa5e208c9b55c6f230674a13d)
This commit is contained in:
Sylvain 2023-12-11 14:12:42 +01:00 committed by Sam Lantinga
parent f3b0dc5007
commit 9db80adfba

View file

@ -702,7 +702,8 @@ int SDL_UpperBlit(SDL_Surface *src, const SDL_Rect *srcrect,
SDL_Surface *dst, SDL_Rect *dstrect) SDL_Surface *dst, SDL_Rect *dstrect)
{ {
SDL_Rect fulldst; SDL_Rect fulldst;
int srcx, srcy, w, h; int srcx, srcy;
Sint64 w, h;
/* Make sure the surfaces aren't locked */ /* Make sure the surfaces aren't locked */
if (!src || !dst) { if (!src || !dst) {