comparison src/event.c @ 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 92cfabe22d6b
children 1695a4b02b14
comparison
equal deleted inserted replaced
74:3e3e074120a7 75:23bc382d9683
94 94
95 geos = rdman->gen_geos; 95 geos = rdman->gen_geos;
96 cr = rdman->cr; 96 cr = rdman->cr;
97 for(i = rdman->n_gen_geos - 1; i >= 0; i--) { 97 for(i = rdman->n_gen_geos - 1; i >= 0; i--) {
98 geo = geos[i]; 98 geo = geos[i];
99 if(geo->flags & GEF_DIRTY) 99 if(geo->flags & GEF_HIDDEN)
100 continue; 100 continue;
101 shape = geo->shape; 101 shape = geo->shape;
102 draw_shape_path(shape, cr); 102 draw_shape_path(shape, cr);
103 if(shape->fill) { 103 if(shape->fill) {
104 if(cairo_in_fill(cr, x, y)) { 104 if(cairo_in_fill(cr, x, y)) {