From 7eca6b0d05443e85ecd7bb107dccf410696364aa Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 13 Mar 2012 13:36:39 +0100 Subject: Add ctx argument and rename fz_bound_pixmap to fz_pixmap_bbox. --- fitz/image_save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fitz/image_save.c') diff --git a/fitz/image_save.c b/fitz/image_save.c index 614d18ce..95be1cd3 100644 --- a/fitz/image_save.c +++ b/fitz/image_save.c @@ -10,7 +10,7 @@ void fz_write_pixmap(fz_context *ctx, fz_pixmap *img, char *file, int rgb) if (rgb && img->colorspace && img->colorspace != fz_device_rgb) { - converted = fz_new_pixmap_with_bbox(ctx, fz_device_rgb, fz_bound_pixmap(img)); + converted = fz_new_pixmap_with_bbox(ctx, fz_device_rgb, fz_pixmap_bbox(ctx, img)); fz_convert_pixmap(ctx, converted, img); img = converted; } -- cgit v1.2.3