Mercurial > MadButterfly
diff src/event.c @ 32:69c8e264890d
Remove old path after every shape checking for a position.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 05 Aug 2008 18:28:50 +0800 |
parents | e06a4a667ce2 |
children | 581a03196093 |
line wrap: on
line diff
--- a/src/event.c Tue Aug 05 16:38:04 2008 +0800 +++ b/src/event.c Tue Aug 05 18:28:50 2008 +0800 @@ -98,17 +98,18 @@ if(shape->fill) { if(cairo_in_fill(cr, x, y)) { *in_stroke = 0; - cairo_new_path(cr); + cairo_new_path(rdman->cr); return geo; } } if(shape->stroke) { if(cairo_in_stroke(cr, x, y)) { *in_stroke = 1; - cairo_new_path(cr); + cairo_new_path(rdman->cr); return geo; } } + cairo_new_path(rdman->cr); } return NULL;