Revert checks on destination scaling size (see bug #5510)

This commit is contained in:
Sylvain Becker
2021-01-30 20:09:35 +01:00
parent 088fb52579
commit 9d70711342
2 changed files with 6 additions and 4 deletions

View File

@@ -931,8 +931,9 @@ SDL_PrivateLowerBlitScaled(SDL_Surface * src, SDL_Rect * srcrect,
SDL_COPY_COLORKEY
);
if (srcrect->w > SDL_MAX_UINT16 || srcrect->h > SDL_MAX_UINT16) {
return SDL_SetError("Source size too large for scaling");
if (srcrect->w > SDL_MAX_UINT16 || srcrect->h > SDL_MAX_UINT16 ||
dstrect->w > SDL_MAX_UINT16 || dstrect->h > SDL_MAX_UINT16) {
return SDL_SetError("Size too large for scaling");
}
if (!(src->map->info.flags & SDL_COPY_NEAREST)) {