From f873a4c40c43e29b449ead2fd792333b018afc8b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 11 Apr 2018 13:41:22 +0200 Subject: Update examples. --- docs/examples/multi-threaded.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/examples/multi-threaded.c') diff --git a/docs/examples/multi-threaded.c b/docs/examples/multi-threaded.c index d8541983..2a5d4faf 100644 --- a/docs/examples/multi-threaded.c +++ b/docs/examples/multi-threaded.c @@ -33,6 +33,8 @@ depending on your environment. //Include the MuPDF header file, and pthread's header file. #include +#include +#include #include // A convenience function for dying abruptly on pthread errors. @@ -229,7 +231,7 @@ int main(int argc, char **argv) // Create a white pixmap using the correct dimensions. - pix = fz_new_pixmap_with_bbox(ctx, fz_device_rgb(ctx), fz_round_rect(&rbox, &bbox), 0); + pix = fz_new_pixmap_with_bbox(ctx, fz_device_rgb(ctx), fz_round_rect(&rbox, &bbox), NULL, 0); fz_clear_pixmap_with_value(ctx, pix, 0xff); // Populate the data structure to be sent to the -- cgit v1.2.3