Enlightenment CVS committal
Author : onefang
Project : e_modules
Module : mem
Dir : e_modules/mem
Modified Files:
e_mod_main.c
Log Message:
Fix second graph render wierdness, and CPU eating, plus some extra paranoia.
===================================================================
RCS file: /cvs/e/e_modules/mem/e_mod_main.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- e_mod_main.c 3 Apr 2006 10:19:32 -0000 1.21
+++ e_mod_main.c 4 Apr 2006 10:22:04 -0000 1.22
@@ -642,7 +642,7 @@
/* Add new value to list */
mf->old_real = evas_list_prepend(mf->old_real, o);
l = mf->old_real;
- for (i = (x + w); l && (j -2) < w; l = l->next, j++)
+ for (i = (x + w); l && ((j -2) < w); l = l->next, j++)
{
Evas_Coord oy;
Evas_Object *lo;
@@ -660,6 +660,8 @@
evas_object_del(last);
}
+ j = 0;
+ last = NULL;
o = evas_object_line_add(mf->evas);
edje_object_part_swallow(mf->chart_obj, "lines", o);
evas_object_layer_set(o, 1);
@@ -672,10 +674,10 @@
evas_object_pass_events_set(o, 1);
evas_object_show(o);
}
-
+
mf->old_swap = evas_list_prepend(mf->old_swap, o);
l = mf->old_swap;
- for (i = (x + w); l && (j -2) < w; l = l->next, j++)
+ for (i = (x + w); l && ((j -2) < w); l = l->next, j++)
{
Evas_Coord oy;
Evas_Object *lo;
@@ -692,7 +694,7 @@
edje_object_part_unswallow(mf->chart_obj, last);
evas_object_del(last);
}
-
+
evas_event_thaw(mf->evas);
}
@@ -722,7 +724,7 @@
}
evas_list_free(mf->old_swap);
mf->old_swap = NULL;
-
+
evas_event_thaw(mf->evas);
}
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs