1.1 --- a/src/video/SDL_video.c Fri Oct 02 13:50:36 2009 +0000
1.2 +++ b/src/video/SDL_video.c Sat Oct 03 16:23:16 2009 +0000
1.3 @@ -2463,14 +2463,14 @@
1.4 if (dstrect->w != real_dstrect.w) {
1.5 int deltax = (real_dstrect.x - dstrect->x);
1.6 int deltaw = (real_dstrect.w - dstrect->w);
1.7 - real_srcrect.x += (deltax * dstrect->w) / real_srcrect.w;
1.8 - real_srcrect.w += (deltaw * dstrect->w) / real_srcrect.w;
1.9 + real_srcrect.x += (deltax * real_srcrect.w) / dstrect->w;
1.10 + real_srcrect.w += (deltaw * real_srcrect.w) / dstrect->w;
1.11 }
1.12 if (dstrect->h != real_dstrect.h) {
1.13 int deltay = (real_dstrect.y - dstrect->y);
1.14 int deltah = (real_dstrect.h - dstrect->h);
1.15 - real_srcrect.y += (deltay * dstrect->h) / real_srcrect.h;
1.16 - real_srcrect.h += (deltah * dstrect->h) / real_srcrect.h;
1.17 + real_srcrect.y += (deltay * real_srcrect.h) / dstrect->h;
1.18 + real_srcrect.h += (deltah * real_srcrect.h) / dstrect->h;
1.19 }
1.20 }
1.21