From: Enlightenment S. <no-...@en...> - 2009-10-01 21:54:45
|
Log: Calculate padding. Author: titan Date: 2009-10-01 14:54:35 -0700 (Thu, 01 Oct 2009) New Revision: 42844 Modified: trunk/ephoto/src/bin/ephoto_table.c Modified: trunk/ephoto/src/bin/ephoto_table.c =================================================================== --- trunk/ephoto/src/bin/ephoto_table.c 2009-10-01 21:27:27 UTC (rev 42843) +++ trunk/ephoto/src/bin/ephoto_table.c 2009-10-01 21:54:35 UTC (rev 42844) @@ -251,7 +251,7 @@ return; sd->visiblew = w; sd->visibleh = h; - sd->items_per_page = (sd->visiblew / sd->item_w) * (sd->visibleh / sd->item_h); + sd->items_per_page = (sd->visiblew / (sd->item_w+sd->paddingw)) * (sd->visibleh / (sd->item_h+sd->paddingh)); if (!eina_list_count(sd->items)) return; @@ -656,7 +656,7 @@ edje_object_size_min_get(img, &sd->item_w, &sd->item_h); evas_object_del(img); - sd->items_per_page = (sd->visiblew / sd->item_w) * (sd->visibleh / sd->item_h); + sd->items_per_page = (sd->visiblew / (sd->item_w+sd->paddingw)) * (sd->visibleh / (sd->item_h+sd->paddingh)); em->thumb_cli = ethumb_client_connect(connect_callback, NULL, NULL); } |