This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch reproducible-widget-previews
in repository efl.

View the commit online.

commit 4b07f14d54a8147a88808354521be9dc8a26fa0c
Author: Carsten Haitzler <[email protected]>
AuthorDate: Tue Apr 21 09:42:47 2026 +0100

    edje -- fewer api calls in calce to get img sz for fill
    
    @opt
---
 src/lib/edje/edje_calc.c | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index 6594e4aade..5be418f78e 100644
--- a/src/lib/edje/edje_calc.c
+++ b/src/lib/edje/edje_calc.c
@@ -2060,14 +2060,13 @@ _edje_part_recalc_single_fill(Edje_Real_Part *ep,
                               Edje_Part_Description_Spec_Fill *fill,
                               Edje_Calc_Params *params)
 {
-   int fw;
-   int fh;
-
-   params->smooth = fill->smooth;
+   int fw = 1, fh = 1;
 
    if (fill->type == EDJE_FILL_TYPE_TILE)
-     evas_object_image_size_get(ep->object, &fw, NULL);
-   else
+     evas_object_image_size_get(ep->object, &fw, &fh);
+   params->smooth = fill->smooth;
+
+   if (fill->type != EDJE_FILL_TYPE_TILE)
      fw = params->final.w;
 
    _edje_calc_params_need_type_common(params);
@@ -2076,9 +2075,7 @@ _edje_part_recalc_single_fill(Edje_Real_Part *ep,
    params->type.common->fill.w = fill->abs_x
      + TO_INT(SCALE(fill->rel_x, fw));
 
-   if (fill->type == EDJE_FILL_TYPE_TILE)
-     evas_object_image_size_get(ep->object, NULL, &fh);
-   else
+   if (fill->type != EDJE_FILL_TYPE_TILE)
      fh = params->final.h;
 
    params->type.common->fill.y = fill->pos_abs_y

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to