summaryrefslogtreecommitdiff
path: root/source/tools/murun.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/tools/murun.c')
-rw-r--r--source/tools/murun.c5
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