Mercurial > MadButterfly
changeset 75:23bc382d9683
find_geo_in_pos() should return shapes that is not hidden
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Mon, 18 Aug 2008 23:08:03 +0800 |
parents | 3e3e074120a7 |
children | 8706356a61b4 |
files | src/event.c src/redraw_man.c |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/event.c Mon Aug 18 10:46:03 2008 +0800 +++ b/src/event.c Mon Aug 18 23:08:03 2008 +0800 @@ -96,7 +96,7 @@ cr = rdman->cr; for(i = rdman->n_gen_geos - 1; i >= 0; i--) { geo = geos[i]; - if(geo->flags & GEF_DIRTY) + if(geo->flags & GEF_HIDDEN) continue; shape = geo->shape; draw_shape_path(shape, cr);
--- a/src/redraw_man.c Mon Aug 18 10:46:03 2008 +0800 +++ b/src/redraw_man.c Mon Aug 18 23:08:03 2008 +0800 @@ -132,7 +132,7 @@ return ERR; } - rdman->observer_pool = elmpool_new(sizeof(observer_t), 16); + rdman->observer_pool = elmpool_new(sizeof(observer_t), 32); if(rdman->observer_pool == NULL) { elmpool_free(rdman->geo_pool); elmpool_free(rdman->coord_pool); @@ -140,7 +140,7 @@ return ERR; } - rdman->subject_pool = elmpool_new(sizeof(subject_t), 16); + rdman->subject_pool = elmpool_new(sizeof(subject_t), 32); if(rdman->subject_pool == NULL) { elmpool_free(rdman->geo_pool); elmpool_free(rdman->coord_pool);