mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-25 00:20:43 +02:00
Round fallback image size up instead of down
to ensure the fallback image completely covers the fallback region.
This commit is contained in:
parent
94e41d5565
commit
95acec69d8
1 changed files with 2 additions and 2 deletions
|
|
@ -258,8 +258,8 @@ _paint_fallback_image (cairo_paginated_surface_t *surface,
|
|||
width = box->p2.x - x;
|
||||
height = box->p2.y - y;
|
||||
image = _cairo_paginated_surface_create_image_surface (surface,
|
||||
width * x_scale,
|
||||
height * y_scale);
|
||||
ceil (width * x_scale),
|
||||
ceil (height * y_scale));
|
||||
_cairo_surface_set_device_scale (image, x_scale, y_scale);
|
||||
/* set_device_offset just sets the x0/y0 components of the matrix;
|
||||
* so we have to do the scaling manually. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue