The previous commit exposed an issue with the region test
does not take into account the scale down factor.
Not a @fix in itself, as it depends on the previous patch.
prop->w, prop->h,
degree, prop->flipped);
}
+ if (prop->scale > 1)
+ {
+ load_region_x /= prop->scale;
+ load_region_y /= prop->scale;
+ load_region_w /= prop->scale;
+ load_region_h /= prop->scale;
+ }
RECTS_CLIP_TO_RECT(load_region_x, load_region_y,
load_region_w, load_region_h,
0, 0, prop->w, prop->h);
if (opts->region.w > 0 && opts->region.h > 0)
{
- if ((w32 < opts->region.x + opts->region.w) ||
- (h32 < opts->region.y + opts->region.h))
+ if (((int) w32 < opts->region.x + opts->region.w) ||
+ ((int) h32 < opts->region.y + opts->region.h))
{
*error = EVAS_LOAD_ERROR_GENERIC;
goto close_file;