mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-01 23:08:15 +02:00
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.
This commit is contained in:
parent
13a0474641
commit
477c134412
2 changed files with 4 additions and 4 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -166,8 +166,8 @@ _cairo_paginated_surface_get_recording (cairo_surface_t *surface)
|
|||
|
||||
cairo_status_t
|
||||
_cairo_paginated_surface_set_size (cairo_surface_t *surface,
|
||||
int width,
|
||||
int height)
|
||||
double width,
|
||||
double height)
|
||||
{
|
||||
cairo_paginated_surface_t *paginated_surface;
|
||||
cairo_status_t status;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue