summaryrefslogtreecommitdiff
path: root/src/video/SDL_stretch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/video/SDL_stretch.c')
-rw-r--r--src/video/SDL_stretch.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video/SDL_stretch.c b/src/video/SDL_stretch.c
index 8b5512fe2..e4424fbcc 100644
--- a/src/video/SDL_stretch.c
+++ b/src/video/SDL_stretch.c
@@ -94,9 +94,8 @@ SDL_UpperSoftStretch(SDL_Surface * src, const SDL_Rect * srcrect,
return 0;
}
- if (srcrect->w > SDL_MAX_UINT16 || srcrect->h > SDL_MAX_UINT16 ||
- dstrect->w > SDL_MAX_UINT16 || dstrect->h > SDL_MAX_UINT16) {
- return SDL_SetError("Too large size for scaling");
+ if (srcrect->w > SDL_MAX_UINT16 || srcrect->h > SDL_MAX_UINT16) {
+ return SDL_SetError("Source size too large for scaling");
}
/* Lock the destination if it's in hardware */