seoz pushed a commit to branch master.

http://git.enlightenment.org/apps/ephoto.git/commit/?id=08bc1663845a5e0962a78eeb8247c0a1ea5446ba

commit 08bc1663845a5e0962a78eeb8247c0a1ea5446ba
Author: Daniel Juyung Seo <seojuyu...@gmail.com>
Date:   Wed Jan 8 01:49:26 2014 +0900

    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

-- 


Reply via email to