Skip to content

Commit

Permalink
Update MuPDF library for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions authored and diegobernardes committed Jun 6, 2024
1 parent 0a02497 commit 9cb3e7a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,8 @@ save_to_png_output save_to_png(save_to_png_input input) {
}
}

// Update the scale_factor based on the DPI.
float scale_dpi = ((float)(input.dpi - 72) / 72) * 100;
scale_factor = scale_factor * (1 + (scale_dpi / 100));

fz_matrix ctm = fz_scale(scale_factor, scale_factor);
float resolution = (float)(input.dpi) / 72;
fz_matrix ctm = fz_concat(fz_scale(resolution, resolution), fz_scale(scale_factor, scale_factor));
bounds = fz_transform_rect(bounds, ctm);
fz_irect bbox = fz_round_rect(bounds);
pixmap = fz_new_pixmap_with_bbox(ctx, fz_device_rgb(ctx), bbox, NULL, 1);
Expand Down
Binary file modified misc/mupdf/lib/x86-64-linux/libmupdf-third.a
Binary file not shown.
Binary file modified misc/mupdf/lib/x86-64-linux/libmupdf.a
Binary file not shown.

0 comments on commit 9cb3e7a

Please sign in to comment.