From 2b7f3d1035f4bae9c189e0e6fcbb907ca46538c4 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 12 Mar 2012 14:45:25 +0000 Subject: Change order of params in fz_convert_pixmap to C standard. C's standard is copy(dst, src), so we move to adopt that here. Hopefully no one is calling this routine other than us - if they are, then I apologise! Better to aim for consistency before we freeze the API at v1.0 than to carry an inconsistent API around ever after. --- draw/draw_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'draw') diff --git a/draw/draw_device.c b/draw/draw_device.c index de81ccec..e8356f6e 100644 --- a/draw/draw_device.c +++ b/draw/draw_device.c @@ -927,7 +927,7 @@ fz_draw_fill_image(fz_device *devp, fz_image *image, fz_matrix ctm, float alpha) if (pixmap->colorspace != model && !after) { converted = fz_new_pixmap_with_rect(ctx, model, fz_bound_pixmap(pixmap)); - fz_convert_pixmap(ctx, pixmap, converted); + fz_convert_pixmap(ctx, converted, pixmap); pixmap = converted; } @@ -957,7 +957,7 @@ fz_draw_fill_image(fz_device *devp, fz_image *image, fz_matrix ctm, float alpha) else { converted = fz_new_pixmap_with_rect(ctx, model, fz_bound_pixmap(pixmap)); - fz_convert_pixmap(ctx, pixmap, converted); + fz_convert_pixmap(ctx, converted, pixmap); pixmap = converted; } } -- cgit v1.2.3