Dear Cedric or anyone

Hello
I have one problem about image set in edje.

When the image set is used, sometime it isn't work.
The reason is why ep->param1.set isn't set at first in below function call.

=========================================================
             _edje_part_recalc_single(ed, ep, ep->param1.description,
                                         chosen_desc, center[0], light[0],
                                         persp[0], rp1[Rel1X], rp1[Rel1Y],
                                         rp1[Rel2X], rp1[Rel2Y], confine_to,
                                         threshold, p1, *ep->param1.set*,
mmw, mmh,
                                         pos);
=========================================================

So I want to call _edje_real_part_image_set before ep->param1.set is used
like below patch.
=========================================================
diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index 851c15e..6a306b3 100644
--- a/src/lib/edje/edje_calc.c
+++ b/src/lib/edje/edje_calc.c
@@ -3358,6 +3358,9 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int
flags, Edje_Calc_Params *sta
           }
      }

+   if (ep->part->type == EDJE_PART_TYPE_IMAGE)
+     _edje_real_part_image_set(ed, ep, pos);
+
 #ifndef EDJE_CALC_CACHE
    p1 = &lp1;
    p1.map = eina_cow_alloc(_edje_calc_params_map_cow);
=========================================================
Is it right?
Please review this patch.

Thanks.

ps. I can't use arcanist because I can't download (git clone git://
github.com/facebook/libphutil.git).
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to