summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hirt <daniel.hirt@samsung.com>2015-07-29 17:15:42 +0300
committerDaniel Hirt <daniel.hirt@samsung.com>2015-07-29 17:17:34 +0300
commitc5fde55ba91d14a6fd5153d18a130d5283061538 (patch)
treeabfe9ae64a513f9ad2d041a982ed7bbc19d18cd1
parent87605590908e7bd638b26850da064ea708f222b2 (diff)
eo_preload: Fix color changes
For odd number of paragraphs (or something like that) the colors of paragraphs would interchange. This resets the color_idx per object.
-rw-r--r--src/lib/eo_preload.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eo_preload.c b/src/lib/eo_preload.c
index d51316e..ad8e9a1 100644
--- a/src/lib/eo_preload.c
+++ b/src/lib/eo_preload.c
@@ -58,6 +58,7 @@ _evas_textblock_par_rects_get(Evas_Object *obj);
58static void 58static void
59_rects_populate(Debug_Decorate *dec) 59_rects_populate(Debug_Decorate *dec)
60{ 60{
61 color_idx = 0;
61 Eina_List *rects = _evas_textblock_par_rects_get(dec->obj); 62 Eina_List *rects = _evas_textblock_par_rects_get(dec->obj);
62 Eina_Rectangle *rect; 63 Eina_Rectangle *rect;
63 Evas_Coord ox, oy; 64 Evas_Coord ox, oy;
@@ -71,7 +72,7 @@ _rects_populate(Debug_Decorate *dec)
71 r->obj = evas_object_rectangle_add(dec->obj); 72 r->obj = evas_object_rectangle_add(dec->obj);
72 evas_object_pass_events_set(r->obj, EINA_TRUE); 73 evas_object_pass_events_set(r->obj, EINA_TRUE);
73 evas_object_color_set(r->obj, c.r, c.g, c.b, c.a); 74 evas_object_color_set(r->obj, c.r, c.g, c.b, c.a);
74 printf("Color set to (%d,%d,%d,%d)\n", c.r, c.g, c.b, c.a); 75 // printf("Color set to (%d,%d,%d,%d)\n", c.r, c.g, c.b, c.a);
75 evas_object_resize(r->obj, rect->w, rect->h); 76 evas_object_resize(r->obj, rect->w, rect->h);
76 evas_object_move(r->obj, ox + rect->x, oy + rect->y); 77 evas_object_move(r->obj, ox + rect->x, oy + rect->y);
77 dec->rects = (Debug_Rect *)eina_inlist_append( 78 dec->rects = (Debug_Rect *)eina_inlist_append(