Mercurial > sdl-ios-xcode
changeset 1644:8a858076f39d
Added a note so I remember what the heck I was doing later. :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 17 Apr 2006 07:03:13 +0000 |
parents | 51038e80ae59 |
children | 2a55580b767b |
files | src/video/SDL_yuv_sw.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/SDL_yuv_sw.c Mon Apr 17 06:47:23 2006 +0000 +++ b/src/video/SDL_yuv_sw.c Mon Apr 17 07:03:13 2006 +0000 @@ -1178,6 +1178,11 @@ 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) &&