From 919bea6dbb32746f11781cd3a94eb44f5c4a32e6 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 31 Aug 2007 11:24:06 +0100 Subject: [cairo-gstate] Avoid copying untransformed glyphs. Skip the memory duplication of the incoming glyphs if we do not need to transform them into the backend coordinate system. As a consequence we need to constify the glyphs passed to the backend functions. --- src/cairo-win32-font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cairo-win32-font.c') diff --git a/src/cairo-win32-font.c b/src/cairo-win32-font.c index 484ca17b..d9e82c0b 100644 --- a/src/cairo-win32-font.c +++ b/src/cairo-win32-font.c @@ -1170,7 +1170,7 @@ _cairo_win32_scaled_font_show_glyphs (void *abstract_font, int dest_y, unsigned int width, unsigned int height, - cairo_glyph_t *glyphs, + const cairo_glyph_t *glyphs, int num_glyphs) { cairo_win32_scaled_font_t *scaled_font = abstract_font; -- cgit v1.2.3