/* Set the actual surface resolution of @surface to the given x and y DPI. Mainly used for correctly computing the scale factor when fallback rendering needs to take place in the paginated surface.  */
void _cairo_surface_set_resolution(cairo_surface_t *surface, double x_res, double y_res)
/* Set the actual surface resolution of @surface to the given x and y DPI. Mainly used for correctly computing the scale factor when fallback rendering needs to take place in the paginated surface.  */
void _cairo_surface_set_resolution(cairo_surface_t *surface, double x_res, double y_res)
{
    if (surface->status)
	return;
    surface->x_resolution = x_res;
    surface->y_resolution = y_res;
}