mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-03-31 11:10:48 +02:00
Pass scratch space instead of NULL for image_extra to acquire/release_dest_image.
This commit is contained in:
parent
e54787b78d
commit
4974affc3f
2 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue