(epi->w32 > IMG_MAX_SIZE) || (epi->h32 > IMG_MAX_SIZE) ||
IMG_TOO_BIG(epi->w32, epi->h32))
{
- if (IMG_TOO_BIG(epi->w32, epi->h32))
- *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
- else
- *error = EVAS_LOAD_ERROR_GENERIC;
- goto close_file;
+ if (IMG_TOO_BIG(epi->w32, epi->h32))
+ *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
+ else
+ *error = EVAS_LOAD_ERROR_GENERIC;
+ goto close_file;
}
if (opts->emile.region.w > 0 && opts->emile.region.h > 0)
++dst_ptr;
src_ptr2 += scale_ratio;
}
- src_ptr2 += scale_ratio * image_w;
+ src_ptr2 += (scale_ratio * image_w) - w;
}
}
else