summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <chuneon.park@samsung.com>2015-03-04 22:52:12 +0900
committerChunEon Park <chuneon.park@samsung.com>2015-03-04 22:52:12 +0900
commit3dff8b0a436aa6b3d478d25e4afb76066e380a77 (patch)
tree7173d462b23d9ba886f607c4b5aa1d49aa1334e8
parent2e4f4d502fc4885344b34206931a0c5b833d8b7b (diff)
edje: code refactoring.
use a constant vairable for maintainance.
-rw-r--r--src/lib/edje/edje_util.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/edje/edje_util.c b/src/lib/edje/edje_util.c
index b96715cabd..d0b71c6679 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
2986EOLIAN void 2986EOLIAN void
2987_edje_object_size_min_restricted_calc(Eo *obj EINA_UNUSED, Edje *ed, Evas_Coord *minw, Evas_Coord *minh, Evas_Coord restrictedw, Evas_Coord restrictedh) 2987_edje_object_size_min_restricted_calc(Eo *obj EINA_UNUSED, Edje *ed, Evas_Coord *minw, Evas_Coord *minh, Evas_Coord restrictedw, Evas_Coord restrictedh)
2988{ 2988{
2989 const int MIN_LIMIT = 4000;
2990
2989 Evas_Coord orig_w, orig_h; //original edje size 2991 Evas_Coord orig_w, orig_h; //original edje size
2990 int max_over_w, max_over_h; //maximum over-calculated size. 2992 int max_over_w, max_over_h; //maximum over-calculated size.
2991 Eina_Bool repeat_w, repeat_h; 2993 Eina_Bool repeat_w, repeat_h;
@@ -3104,7 +3106,7 @@ again:
3104 if (ed->h < restrictedh) ed->h = restrictedh; 3106 if (ed->h < restrictedh) ed->h = restrictedh;
3105 } 3107 }
3106 3108
3107 if ((ed->w > 4000) || (ed->h > 4000)) 3109 if ((ed->w > MIN_LIMIT) || (ed->h > MIN_LIMIT))
3108 { 3110 {
3109 /* Only print it if we have a non-fixed textblock. 3111 /* Only print it if we have a non-fixed textblock.
3110 * We should possibly avoid all of this if in this case, but in 3112 * We should possibly avoid all of this if in this case, but in
@@ -3115,8 +3117,9 @@ again:
3115 ERR("file %s, group %s has a non-fixed part '%s'. Adding 'fixed: 1 1;' to source EDC may help. Continuing discarding faulty part.", 3117 ERR("file %s, group %s has a non-fixed part '%s'. Adding 'fixed: 1 1;' to source EDC may help. Continuing discarding faulty part.",
3116 ed->path, ed->group, pep->part->name); 3118 ed->path, ed->group, pep->part->name);
3117 else 3119 else
3118 ERR("file %s, group %s overflowed 4000x4000 with minimum size of %dx%d. Continuing discarding faulty parts.", 3120 ERR("file %s, group %s overflowed %dx%d with minimum size of %dx%d. Continuing discarding faulty parts.",
3119 ed->path, ed->group, ed->w, ed->h); 3121 ed->path, ed->group, MIN_LIMIT, MIN_LIMIT,
3122 ed->w, ed->h);
3120 } 3123 }
3121 3124
3122 if (reset_max) 3125 if (reset_max)