summaryrefslogtreecommitdiff
path: root/src/lib/emile
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-08-17 16:45:16 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-08-17 17:28:53 +0900
commit0193e40d8c1c06303bc8f0be95634fe8df7f1481 (patch)
tree50e0ea2d4fd9fd4dba1317e834adea120e9d2bfb /src/lib/emile
parentfecbcf8a905e30345d3454c9cdb665a6d7b098bc (diff)
evas: Fix region test in jpeg load with region + zoom
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.
Diffstat (limited to 'src/lib/emile')
-rw-r--r--src/lib/emile/emile_image.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/emile/emile_image.c b/src/lib/emile/emile_image.c
index 5c12035fd7..7c1db48a07 100644
--- a/src/lib/emile/emile_image.c
+++ b/src/lib/emile/emile_image.c
@@ -1562,6 +1562,13 @@ _emile_jpeg_head(Emile_Image *image,
1562 prop->w, prop->h, 1562 prop->w, prop->h,
1563 degree, prop->flipped); 1563 degree, prop->flipped);
1564 } 1564 }
1565 if (prop->scale > 1)
1566 {
1567 load_region_x /= prop->scale;
1568 load_region_y /= prop->scale;
1569 load_region_w /= prop->scale;
1570 load_region_h /= prop->scale;
1571 }
1565 RECTS_CLIP_TO_RECT(load_region_x, load_region_y, 1572 RECTS_CLIP_TO_RECT(load_region_x, load_region_y,
1566 load_region_w, load_region_h, 1573 load_region_w, load_region_h,
1567 0, 0, prop->w, prop->h); 1574 0, 0, prop->w, prop->h);