From 8ca1cc20a1db53f670ed5d53b0b74287c0c8d8ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 30 Aug 2010 08:21:44 -0400 Subject: [PATCH] flower: Clear surface --- clients/flower.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clients/flower.c b/clients/flower.c index 68c9062e..54d54f2e 100644 --- a/clients/flower.c +++ b/clients/flower.c @@ -62,6 +62,11 @@ draw_stuff(cairo_surface_t *surface, int width, int height) double x1, y1, x2, y2, x3, y3; cr = cairo_create(surface); + cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE); + cairo_set_source_rgba(cr, 0, 0, 0, 0); + cairo_paint(cr); + + cairo_set_operator(cr, CAIRO_OPERATOR_OVER); cairo_translate(cr, width / 2, height / 2); cairo_move_to(cr, cos(0) * r1, sin(0) * r1); for (t = 0, i = 0; i < petal_count; i++, t += dt * 2) {