diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-01-21 19:39:08 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-01-21 19:39:08 +0000 |
commit | 22b183c3aa6ea01265ed79fac03467e3160c3b9d (patch) | |
tree | 85fa788ae6c68eafb5439a01a6e4fb17d7168285 /examples/cairosimple.c | |
parent | 4a1860a37c7dc01771cc0234fba3ffcea069e114 (diff) | |
download | pango-22b183c3aa6ea01265ed79fac03467e3160c3b9d.tar.gz |
Small fixes.
2006-01-20 Behdad Esfahbod <behdad@gnome.org>
* examples/cairosimple.c: Small fixes.
Diffstat (limited to 'examples/cairosimple.c')
-rw-r--r-- | examples/cairosimple.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/cairosimple.c b/examples/cairosimple.c index 27aaf044..fb973260 100644 --- a/examples/cairosimple.c +++ b/examples/cairosimple.c @@ -33,7 +33,7 @@ draw_text (cairo_t *cr) cairo_save (cr); - /* Gradient from red at angle == 60 to blue at angle == 300 */ + /* Gradient from red at angle == 60 to blue at angle == 240 */ red = (1 + cos ((angle - 60) * G_PI / 180.)) / 2; cairo_set_source_rgb (cr, red, 0, 1.0 - red); @@ -74,8 +74,7 @@ int main (int argc, char **argv) cairo_set_source_rgb (cr, 1.0, 1.0, 1.0); - cairo_rectangle (cr, 0, 0, 2 * RADIUS, 2 * RADIUS); - cairo_fill (cr); + cairo_paint (cr); draw_text (cr); cairo_destroy (cr); |