forked from enlightenment/efl
Fixing cropped thumbnails generation.
The fill x and y coordinates were wrong. SVN revision: 40026
This commit is contained in:
parent
6129f4d71b
commit
491cd50ce6
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue