projects
/
profile
/
ivi
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c7c6064
)
flower: Clear surface
author
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 30 Aug 2010 12:21:44 +0000
(08:21 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 30 Aug 2010 12:21:44 +0000
(08:21 -0400)
clients/flower.c
patch
|
blob
|
history
diff --git
a/clients/flower.c
b/clients/flower.c
index
68c9062
..
54d54f2
100644
(file)
--- 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);
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) {
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) {