diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-03-12 14:45:25 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-03-12 14:45:25 +0000 |
commit | 2b7f3d1035f4bae9c189e0e6fcbb907ca46538c4 (patch) | |
tree | 38d0e1a3d8d9fc9d5a94514cbe46389a23d8518f /fitz/image_jpx.c | |
parent | bc9e8f1d6c18b8b37678a07e9266f269fe5bf0dc (diff) | |
download | mupdf-2b7f3d1035f4bae9c189e0e6fcbb907ca46538c4.tar.xz |
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.
Diffstat (limited to 'fitz/image_jpx.c')
-rw-r--r-- | fitz/image_jpx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/image_jpx.c b/fitz/image_jpx.c index b2fc3601..ac1db35a 100644 --- a/fitz/image_jpx.c +++ b/fitz/image_jpx.c @@ -144,7 +144,7 @@ fz_load_jpx(fz_context *ctx, unsigned char *data, int size, fz_colorspace *defcs if (n == 4) { fz_pixmap *tmp = fz_new_pixmap(ctx, fz_device_rgb, w, h); - fz_convert_pixmap(ctx, img, tmp); + fz_convert_pixmap(ctx, tmp, img); fz_drop_pixmap(ctx, img); img = tmp; } |