Round fallback image size up instead of down

to ensure the fallback image completely covers the fallback region.
This commit is contained in:
Adrian Johnson 2008-03-09 16:40:25 +10:30
parent 94e41d5565
commit 95acec69d8

View file

@ -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. */