|
@@ -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)) {
|