diff options
author | Benjamin Hennion <benjamin.hennion@wanadoo.fr> | 2023-01-07 13:08:38 +0100 |
---|---|---|
committer | Benjamin Hennion <benjamin.hennion@wanadoo.fr> | 2023-01-07 13:08:38 +0100 |
commit | 477c134412dd711e101923ae996bf31e203d8821 (patch) | |
tree | 598c6c6bfed0081acc3b231ab36d297a20f4e2ec /src/cairo-paginated-private.h | |
parent | 13a0474641232cccb15d24fa31d8c2557731665b (diff) | |
download | cairo-477c134412dd711e101923ae996bf31e203d8821.tar.gz |
Make _cairo_paginated_surface_set_size takes double-typed width and
height (instead of integers).
Both cairo_pdf_surface_set_size and cairo_ps_surface_set_size passed on
their width and height arguments (of type double) directly to
_cairo_paginated_surface_set_size(cairo_paginated_surface_t*, int, int),
so the width and height were truncated.
A small part of the surface was then inaccessible for drawing (stripes
on the right and bottom of the surface).
This fixes that.
Diffstat (limited to 'src/cairo-paginated-private.h')
-rw-r--r-- | src/cairo-paginated-private.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-paginated-private.h b/src/cairo-paginated-private.h index 89f1c99a2..cc8fd1c7b 100644 --- a/src/cairo-paginated-private.h +++ b/src/cairo-paginated-private.h @@ -178,7 +178,7 @@ _cairo_surface_is_paginated (cairo_surface_t *surface); cairo_private cairo_status_t _cairo_paginated_surface_set_size (cairo_surface_t *surface, - int width, - int height); + double width, + double height); #endif /* CAIRO_PAGINATED_H */ |