hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3dff8b0a436aa6b3d478d25e4afb76066e380a77

commit 3dff8b0a436aa6b3d478d25e4afb76066e380a77
Author: ChunEon Park <[email protected]>
Date:   Wed Mar 4 22:52:12 2015 +0900

    edje: code refactoring.
    
    use a constant vairable for maintainance.
---
 src/lib/edje/edje_util.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/lib/edje/edje_util.c b/src/lib/edje/edje_util.c
index b96715c..d0b71c6 100644
--- a/src/lib/edje/edje_util.c
+++ b/src/lib/edje/edje_util.c
@@ -2986,6 +2986,8 @@ _edje_object_parts_extends_calc(Eo *obj EINA_UNUSED, Edje 
*ed, Evas_Coord *x, Ev
 EOLIAN void
 _edje_object_size_min_restricted_calc(Eo *obj EINA_UNUSED, Edje *ed, 
Evas_Coord *minw, Evas_Coord *minh, Evas_Coord restrictedw, Evas_Coord 
restrictedh)
 {
+   const int MIN_LIMIT = 4000;
+
    Evas_Coord orig_w, orig_h; //original edje size
    int max_over_w, max_over_h;  //maximum over-calculated size.
    Eina_Bool repeat_w, repeat_h;
@@ -3104,7 +3106,7 @@ again:
              if (ed->h < restrictedh) ed->h = restrictedh;
           }
 
-        if ((ed->w > 4000) || (ed->h > 4000))
+        if ((ed->w > MIN_LIMIT) || (ed->h > MIN_LIMIT))
           {
              /* Only print it if we have a non-fixed textblock.
               * We should possibly avoid all of this if in this case, but in
@@ -3115,8 +3117,9 @@ again:
                     ERR("file %s, group %s has a non-fixed part '%s'. Adding 
'fixed: 1 1;' to source EDC may help. Continuing discarding faulty part.",
                         ed->path, ed->group, pep->part->name);
                   else
-                    ERR("file %s, group %s overflowed 4000x4000 with minimum 
size of %dx%d. Continuing discarding faulty parts.",
-                        ed->path, ed->group, ed->w, ed->h);
+                    ERR("file %s, group %s overflowed %dx%d with minimum size 
of %dx%d. Continuing discarding faulty parts.",
+                        ed->path, ed->group, MIN_LIMIT, MIN_LIMIT,
+                        ed->w, ed->h);
                }
 
              if (reset_max)

-- 


Reply via email to