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.
Change-Id: Ifb13aa0985989b240e8006b55ae92d616d929cb5
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;