diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2007-08-31 11:24:06 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2007-08-31 16:28:06 +0100 |
commit | 919bea6dbb32746f11781cd3a94eb44f5c4a32e6 (patch) | |
tree | dd5de0e4fc1ed82d1500b31f2493562c97134c24 /src/cairo-win32-font.c | |
parent | 62377cbac17779fd51ec108e9704be8d3eed4935 (diff) |
[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.
Diffstat (limited to 'src/cairo-win32-font.c')
-rw-r--r-- | src/cairo-win32-font.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |