summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/multi-threaded.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/multi-threaded.c b/docs/multi-threaded.c
index 98932819..eb66db07 100644
--- a/docs/multi-threaded.c
+++ b/docs/multi-threaded.c
@@ -263,7 +263,7 @@ int main(int argc, char **argv)
// Write the rendered image to a PNG file
- fz_write_png(ctx, data->pix, filename, 0);
+ fz_save_pixmap_as_png(ctx, data->pix, filename, 0);
// Free the thread's pixmap and display list since
// they were allocated by the main thread above.