From 08bc1663845a5e0962a78eeb8247c0a1ea5446ba Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Wed, 8 Jan 2014 01:49:26 +0900 Subject: [PATCH] Ephoto: Make gengrid thumbnail size scalable. --- src/bin/ephoto_thumb_browser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/ephoto_thumb_browser.c b/src/bin/ephoto_thumb_browser.c index cce90b2..60c47bc 100644 --- a/src/bin/ephoto_thumb_browser.c +++ b/src/bin/ephoto_thumb_browser.c @@ -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