Pass scratch space instead of NULL for image_extra to acquire/release_dest_image.

This commit is contained in:
Tor Lillqvist 2005-09-20 08:23:20 +00:00
parent e54787b78d
commit 4974affc3f
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2005-09-20 T Rowley <tim.rowley@gmail.com>
* src/cairo-atsui-font.c (_cairo_atsui_font_show_glyphs):
Pass scratch space instead of NULL for image_extra to
acquire/release_dest_image.
2005-09-19 Carl Worth <cworth@cworth.org>
* src/cairo-xlib-surface.c: (_create_a8_picture): Avoid attempting

View file

@ -461,13 +461,14 @@ _cairo_atsui_font_show_glyphs(void *abstract_font,
CGColorSpaceRef colorSpace;
cairo_image_surface_t *destImageSurface;
int i;
void *extra = NULL;
cairo_rectangle_t rect = {dest_x, dest_y, width, height};
_cairo_surface_acquire_dest_image(generic_surface,
&rect,
&destImageSurface,
&rect,
NULL);
&extra);
// Create a CGBitmapContext for the dest surface for drawing into
colorSpace = CGColorSpaceCreateDeviceRGB();
@ -531,7 +532,7 @@ _cairo_atsui_font_show_glyphs(void *abstract_font,
&rect,
destImageSurface,
&rect,
NULL);
extra);
return CAIRO_STATUS_SUCCESS;
}