diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 5 | ||||
-rw-r--r-- | examples/cairoview.c | 5 |
3 files changed, 12 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Mon Apr 18 15:49:36 2005 Manish Singh <yosh@gimp.org> + + * examples/cairoview.c: Update to new Cairo API for setting color + and opacity. + 2005-04-12 Tor Lillqvist <tml@novell.com> * pango/opentype/Makefile.am: Rename LDADDS to diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index b03f3d3c..157e4b35 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,8 @@ +Mon Apr 18 15:49:36 2005 Manish Singh <yosh@gimp.org> + + * examples/cairoview.c: Update to new Cairo API for setting color + and opacity. + 2005-04-12 Tor Lillqvist <tml@novell.com> * pango/opentype/Makefile.am: Rename LDADDS to diff --git a/examples/cairoview.c b/examples/cairoview.c index ec99d7ac..a805595b 100644 --- a/examples/cairoview.c +++ b/examples/cairoview.c @@ -66,8 +66,7 @@ do_cairo_render (PangoLayout *layout, pango_layout_get_extents (layout, &ink, &logical); cairo_save (cr); - cairo_set_rgb_color (cr, 1.0, 0.0, 0.0); - cairo_set_alpha (cr, 0.75); + cairo_set_source_rgba (cr, 1.0, 0.0, 0.0, 0.75); cairo_rectangle (cr, (double)logical.x / PANGO_SCALE - lw / 2, @@ -76,7 +75,7 @@ do_cairo_render (PangoLayout *layout, (double)logical.height / PANGO_SCALE + lw); cairo_stroke (cr); - cairo_set_rgb_color (cr, 0.0, 1.0, 0.0); + cairo_set_source_rgba (cr, 0.0, 1.0, 0.0, 0.75); cairo_rectangle (cr, (double)ink.x / PANGO_SCALE - lw / 2, |