ephoto: fix zoom functions on single browser

For elm images. Using evas images size instead of elm_image size.

Patch by: Igor Murzov (GArik_) <e-mail@date.by>



SVN revision: 75637
This commit is contained in:
Igor Murzov (GArik_) 2012-08-23 20:14:52 +00:00 committed by Bruno Dilly
parent 5c1701091a
commit e781115b2c
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ _viewer_zoom_apply(Ephoto_Viewer *v, double zoom)
else
{
Evas_Coord w, h;
elm_image_object_size_get(v->image, &w, &h);
evas_object_image_size_get(elm_image_object_get(v->image), &w, &h);
w *= zoom;
h *= zoom;
evas_object_size_hint_min_set(v->image, w, h);
@ -167,7 +167,7 @@ _viewer_zoom_fit_apply(Ephoto_Viewer *v)
else
{
evas_object_geometry_get(v->scroller, NULL, NULL, &cw, &ch);
elm_image_object_size_get(v->image, &iw, &ih);
evas_object_image_size_get(elm_image_object_get(v->image), &iw, &ih);
}
if ((cw <= 0) || (ch <= 0)) return; /* object still not resized */