diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-06-16 11:21:36 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-06-16 18:08:15 +0100 |
commit | 5825ef8805ca8439ac576fb0071f9ddbdf8f6281 (patch) | |
tree | 621b85790f6fea992dfd0fd729a8fe981628545a /source/tools/murun.c | |
parent | 840f6ab0becba39a3a5a3a570e1055607dc1364c (diff) | |
download | mupdf-5825ef8805ca8439ac576fb0071f9ddbdf8f6281.tar.xz |
Drop save_alpha argument from image writing functions.
Diffstat (limited to 'source/tools/murun.c')
-rw-r--r-- | source/tools/murun.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/tools/murun.c b/source/tools/murun.c index 61e43e17..0b36e727 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -1585,10 +1585,9 @@ static void ffi_Pixmap_saveAsPNG(js_State *J) fz_context *ctx = js_getcontext(J); fz_pixmap *pixmap = js_touserdata(J, 0, "fz_pixmap"); const char *filename = js_tostring(J, 1); - int savealpha = js_toboolean(J, 2); fz_try(ctx) - fz_save_pixmap_as_png(ctx, pixmap, filename, savealpha); + fz_save_pixmap_as_png(ctx, pixmap, filename); fz_catch(ctx) rethrow(J); } @@ -3243,7 +3242,7 @@ int murun_main(int argc, char **argv) // Pixmap.gamma // Pixmap.scale() - jsB_propfun(J, "Pixmap.saveAsPNG", ffi_Pixmap_saveAsPNG, 2); + jsB_propfun(J, "Pixmap.saveAsPNG", ffi_Pixmap_saveAsPNG, 1); // Pixmap.saveAsPNM, PAM, TGA, PWG, PCL // Pixmap.halftone() -> Bitmap |