Ephoto: Make gengrid thumbnail size scalable.

This commit is contained in:
Daniel Juyung Seo 2014-01-08 01:49:26 +09:00
parent f1df50a4d4
commit 08bc166384
1 changed files with 3 additions and 1 deletions

View File

@ -241,11 +241,13 @@ _changed_dir_text(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUS
static void
_zoom_set(Ephoto_Thumb_Browser *tb, int zoom)
{
double scale = elm_config_scale_get();
if (zoom > ZOOM_MAX) zoom = ZOOM_MAX;
else if (zoom < ZOOM_MIN) zoom = ZOOM_MIN;
ephoto_thumb_size_set(tb->ephoto, zoom);
elm_gengrid_item_size_set(tb->grid, zoom, zoom);
elm_gengrid_item_size_set(tb->grid, zoom * scale, zoom * scale);
}
static void