summaryrefslogtreecommitdiff
path: root/pango/pangocairo-render.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-05-07 18:05:17 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-05-07 18:05:17 +0000
commite174de1f25a84cae71518bfc5ac0f82e4cda964e (patch)
tree9d28624c016a505aaac889bda493b25f08cda47f /pango/pangocairo-render.c
parentcdc77f57773bfb4639f15b77a14736658a3d9926 (diff)
downloadpango-e174de1f25a84cae71518bfc5ac0f82e4cda964e.tar.gz
Update for Cairo API changes.
2005-05-07 Owen Taylor <otaylor@redhat.com> * pango/pangocairo-fontmap.c pango/pangocairo-render.c examples/cairosimple.c pango/pangocairo-fcfont.c examples/cairoview.c: Update for Cairo API changes.
Diffstat (limited to 'pango/pangocairo-render.c')
-rw-r--r--pango/pangocairo-render.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/pango/pangocairo-render.c b/pango/pangocairo-render.c
index 00c1bdc5..9a1048ce 100644
--- a/pango/pangocairo-render.c
+++ b/pango/pangocairo-render.c
@@ -50,10 +50,10 @@ set_color (PangoCairoRenderer *crenderer,
PangoColor *color = pango_renderer_get_color (PANGO_RENDERER (crenderer), part);
if (color)
- cairo_set_rgb_color (crenderer->cr,
- color->red / 65535.,
- color->green / 65535.,
- color->blue / 65535.);
+ cairo_set_source_rgb (crenderer->cr,
+ color->red / 65535.,
+ color->green / 65535.,
+ color->blue / 65535.);
}
static void
@@ -285,7 +285,7 @@ pango_cairo_show_glyph_string (cairo_t *cr,
crenderer->cr = cr;
crenderer->do_path = FALSE;
- cairo_current_point (cr, &crenderer->x_offset, &crenderer->y_offset);
+ cairo_get_current_point (cr, &crenderer->x_offset, &crenderer->y_offset);
pango_renderer_draw_glyphs (renderer, font, glyphs, 0, 0);
@@ -328,7 +328,7 @@ pango_cairo_show_layout_line (cairo_t *cr,
crenderer->cr = cr;
crenderer->do_path = FALSE;
- cairo_current_point (cr, &crenderer->x_offset, &crenderer->y_offset);
+ cairo_get_current_point (cr, &crenderer->x_offset, &crenderer->y_offset);
pango_renderer_draw_layout_line (renderer, line, 0, 0);
@@ -371,7 +371,7 @@ pango_cairo_show_layout (cairo_t *cr,
crenderer->cr = cr;
crenderer->do_path = FALSE;
- cairo_current_point (cr, &crenderer->x_offset, &crenderer->y_offset);
+ cairo_get_current_point (cr, &crenderer->x_offset, &crenderer->y_offset);
pango_renderer_draw_layout (renderer, layout, 0, 0);
@@ -413,7 +413,7 @@ pango_cairo_glyph_string_path (cairo_t *cr,
crenderer->cr = cr;
crenderer->do_path = TRUE;
- cairo_current_point (cr, &crenderer->x_offset, &crenderer->y_offset);
+ cairo_get_current_point (cr, &crenderer->x_offset, &crenderer->y_offset);
pango_renderer_draw_glyphs (renderer, font, glyphs, 0, 0);
@@ -455,7 +455,7 @@ pango_cairo_layout_line_path (cairo_t *cr,
crenderer->cr = cr;
crenderer->do_path = TRUE;
- cairo_current_point (cr, &crenderer->x_offset, &crenderer->y_offset);
+ cairo_get_current_point (cr, &crenderer->x_offset, &crenderer->y_offset);
pango_renderer_draw_layout_line (renderer, line, 0, 0);
@@ -497,7 +497,7 @@ pango_cairo_layout_path (cairo_t *cr,
crenderer->cr = cr;
crenderer->do_path = TRUE;
- cairo_current_point (cr, &crenderer->x_offset, &crenderer->y_offset);
+ cairo_get_current_point (cr, &crenderer->x_offset, &crenderer->y_offset);
pango_renderer_draw_layout (renderer, layout, 0, 0);