summaryrefslogtreecommitdiff
path: root/source/fitz/draw-device.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-06-17 15:13:24 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-06-17 15:13:47 +0200
commit4e8160a9098990ba59962ae6b0a253d9294ab8e3 (patch)
treed806aaae2f920d45492859249a8def159d375453 /source/fitz/draw-device.c
parent8393f20185b0e3e73450096f7b76e1a3d9b5a0e2 (diff)
downloadmupdf-4e8160a9098990ba59962ae6b0a253d9294ab8e3.tar.xz
Set pixmap resolution when creating pixmaps for draw device.
Diffstat (limited to 'source/fitz/draw-device.c')
-rw-r--r--source/fitz/draw-device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c
index 5d7088a6..527d7e08 100644
--- a/source/fitz/draw-device.c
+++ b/source/fitz/draw-device.c
@@ -81,7 +81,7 @@ fz_new_draw_device_with_options(fz_context *ctx, const fz_draw_options *opts, co
fz_matrix transform;
fz_device *dev;
- fz_pre_scale(fz_rotate(&transform, opts->rotate), x_zoom, y_zoom);
+ fz_pre_rotate(fz_scale(&transform, x_zoom, y_zoom), opts->rotate);
bounds = *mediabox;
fz_round_rect(&ibounds, fz_transform_rect(&bounds, &transform));
@@ -116,6 +116,7 @@ fz_new_draw_device_with_options(fz_context *ctx, const fz_draw_options *opts, co
*pixmap = fz_new_pixmap_with_bbox(ctx, opts->colorspace, &ibounds, opts->alpha);
fz_try(ctx)
{
+ fz_set_pixmap_resolution(ctx, *pixmap, opts->x_resolution, opts->y_resolution);
if (opts->alpha)
fz_clear_pixmap(ctx, *pixmap);
else