summaryrefslogtreecommitdiff
path: root/src/lib/ethumb
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-12 04:32:13 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-12 04:32:13 +0000
commitd8db6705ad3b8fc6688b186e0934ec91b6890bd8 (patch)
treecfd182e5816ea3b9f93751d26657d9483090df90 /src/lib/ethumb
parent42d3b66cc5900445198dd7a272002ae6832b36f7 (diff)
fix frame handling.
before it was confusing having to place the img behind the border and draw a hole, it would also cut parts of the view doing that. SVN revision: 82679
Diffstat (limited to 'src/lib/ethumb')
-rw-r--r--src/lib/ethumb/ethumb.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c
index 65d3b97c84..8178c78578 100644
--- a/src/lib/ethumb/ethumb.c
+++ b/src/lib/ethumb/ethumb.c
@@ -1240,11 +1240,9 @@ ethumb_plugin_image_resize(Ethumb *e, int w, int h)
1240 1240
1241 if (e->frame) 1241 if (e->frame)
1242 { 1242 {
1243 edje_extern_object_min_size_set(img, w, h);
1244 edje_extern_object_max_size_set(img, w, h);
1245 edje_object_calc_force(e->frame->edje);
1246 evas_object_move(e->frame->edje, 0, 0); 1243 evas_object_move(e->frame->edje, 0, 0);
1247 evas_object_resize(e->frame->edje, w, h); 1244 evas_object_resize(e->frame->edje, w, h);
1245 edje_object_calc_force(e->frame->edje);
1248 } 1246 }
1249 else 1247 else
1250 { 1248 {
@@ -1514,11 +1512,9 @@ _ethumb_image_load(Ethumb *e)
1514 1512
1515 if (e->frame) 1513 if (e->frame)
1516 { 1514 {
1517 edje_extern_object_min_size_set(img, ww, hh);
1518 edje_extern_object_max_size_set(img, ww, hh);
1519 edje_object_calc_force(e->frame->edje);
1520 evas_object_move(e->frame->edje, 0, 0); 1515 evas_object_move(e->frame->edje, 0, 0);
1521 evas_object_resize(e->frame->edje, ww, hh); 1516 evas_object_resize(e->frame->edje, ww, hh);
1517 edje_object_calc_force(e->frame->edje);
1522 } 1518 }
1523 else 1519 else
1524 { 1520 {