Mercurial > sdl-ios-xcode
comparison src/video/SDL_yuv_sw.c @ 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 | 782fd950bd46 c121d94672cb f420bba13676 |
comparison
equal
deleted
inserted
replaced
1643:51038e80ae59 | 1644:8a858076f39d |
---|---|
1176 | 1176 |
1177 swdata = overlay->hwdata; | 1177 swdata = overlay->hwdata; |
1178 stretch = 0; | 1178 stretch = 0; |
1179 scale_2x = 0; | 1179 scale_2x = 0; |
1180 if ( src->x || src->y || src->w < overlay->w || src->h < overlay->h ) { | 1180 if ( src->x || src->y || src->w < overlay->w || src->h < overlay->h ) { |
1181 /* The source rectangle has been clipped. | |
1182 Using a scratch surface is easier than adding clipped | |
1183 source support to all the blitters, plus that would | |
1184 slow them down in the general unclipped case. | |
1185 */ | |
1181 stretch = 1; | 1186 stretch = 1; |
1182 } else if ( (src->w != dst->w) || (src->h != dst->h) ) { | 1187 } else if ( (src->w != dst->w) || (src->h != dst->h) ) { |
1183 if ( (dst->w == 2*src->w) && | 1188 if ( (dst->w == 2*src->w) && |
1184 (dst->h == 2*src->h) ) { | 1189 (dst->h == 2*src->h) ) { |
1185 scale_2x = 1; | 1190 scale_2x = 1; |