mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 09:08:16 +02:00
Merge branch 'patch-2' into 'master'
Check surface for error in dwrite color-font code See merge request cairo/cairo!662
This commit is contained in:
commit
e823f2071e
1 changed files with 5 additions and 0 deletions
|
|
@ -1340,6 +1340,11 @@ _cairo_dwrite_scaled_font_init_glyph_color_surface(cairo_dwrite_scaled_font_t *s
|
|||
return _cairo_dwrite_error (hr, "EndDraw failed");
|
||||
|
||||
cairo_surface_t *image = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height);
|
||||
cairo_status_t status = cairo_surface_status (image);
|
||||
if (_cairo_status_is_error (status)) {
|
||||
cairo_surface_destroy (image);
|
||||
return (cairo_int_status_t) status;
|
||||
}
|
||||
int stride = cairo_image_surface_get_stride (image);
|
||||
WICRect rect = { 0, 0, width, height };
|
||||
bitmap->CopyPixels(&rect,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue