# HG changeset patch # User Thinker K.F. Li # Date 1217701172 -28800 # Node ID 29937c26bb0117a25dabb0b112ad9acdbe310544 # Parent e598bc809c0f41e87b664919f0dbb5012a8e1927 Fix bug of a dark line appear when animating. - Don't setup clips on buffer surface. - But, apply clips on XLib surface. diff -r e598bc809c0f -r 29937c26bb01 src/redraw_man.c --- a/src/redraw_man.c Sun Aug 03 02:08:31 2008 +0800 +++ b/src/redraw_man.c Sun Aug 03 02:19:32 2008 +0800 @@ -495,7 +495,7 @@ } #ifndef UNITTEST -static void clean_clip(cairo_t *cr) { +static void clean_canvas(cairo_t *cr) { cairo_pattern_t *pt; pt = cairo_get_source(cr); @@ -532,7 +532,7 @@ cairo_paint(rdman->backend); } #else /* UNITTEST */ -static void clean_clip(cairo_t *cr) { +static void clean_canvas(cairo_t *cr) { } static void make_clip(cairo_t *cr, int n_dirty_areas, @@ -630,8 +630,7 @@ n_dirty_areas = rdman->n_dirty_areas; dirty_areas = rdman->dirty_areas; if(n_dirty_areas > 0) { - make_clip(rdman->cr, n_dirty_areas, dirty_areas); - clean_clip(rdman->cr); + clean_canvas(rdman->cr); draw_shapes_in_areas(rdman, n_dirty_areas, dirty_areas); copy_cr_2_backend(rdman, rdman->n_dirty_areas, rdman->dirty_areas); rdman->n_dirty_areas = 0;