From 26ef289156e2f5c98e9a2e577a6b4acd187d8566 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 17 Apr 2006 07:03:13 +0000 Subject: [PATCH] Added a note so I remember what the heck I was doing later. :) --- src/video/SDL_yuv_sw.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video/SDL_yuv_sw.c b/src/video/SDL_yuv_sw.c index 625c2d997..c67d59296 100644 --- a/src/video/SDL_yuv_sw.c +++ b/src/video/SDL_yuv_sw.c @@ -1178,6 +1178,11 @@ int SDL_DisplayYUV_SW(_THIS, SDL_Overlay *overlay, SDL_Rect *src, SDL_Rect *dst) stretch = 0; scale_2x = 0; if ( src->x || src->y || src->w < overlay->w || src->h < overlay->h ) { + /* The source rectangle has been clipped. + Using a scratch surface is easier than adding clipped + source support to all the blitters, plus that would + slow them down in the general unclipped case. + */ stretch = 1; } else if ( (src->w != dst->w) || (src->h != dst->h) ) { if ( (dst->w == 2*src->w) &&