Fixing cropped thumbnails generation.

The fill x and y coordinates were wrong.



SVN revision: 40026
This commit is contained in:
Rafael Antognolli 2009-04-13 22:23:49 +00:00
parent 6129f4d71b
commit 491cd50ce6
1 changed files with 2 additions and 2 deletions

View File

@ -602,8 +602,8 @@ _ethumb_calculate_fill(Ethumb *e, int iw, int ih, int *fx, int *fy, int *fw, int
else else
*fh = (e->tw * ih) / iw; *fh = (e->tw * ih) / iw;
*fx = - e->crop_x * (*fw - iw); *fx = - e->crop_x * (*fw - e->tw);
*fy = - e->crop_y * (*fh - ih); *fy = - e->crop_y * (*fh - e->th);
} }
else if (e->aspect == ETHUMB_THUMB_KEEP_ASPECT) else if (e->aspect == ETHUMB_THUMB_KEEP_ASPECT)
{ {