summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/draw-device.c3
-rw-r--r--source/fitz/pixmap.c6
2 files changed, 5 insertions, 4 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
diff --git a/source/fitz/pixmap.c b/source/fitz/pixmap.c
index 0631e909..6a7f8919 100644
--- a/source/fitz/pixmap.c
+++ b/source/fitz/pixmap.c
@@ -1227,10 +1227,10 @@ fz_subsample_pixmap(fz_context *ctx, fz_pixmap *tile, int factor)
}
void
-fz_pixmap_set_resolution(fz_pixmap *pix, int res)
+fz_set_pixmap_resolution(fz_context *ctx, fz_pixmap *pix, int xres, int yres)
{
- pix->xres = res;
- pix->yres = res;
+ pix->xres = xres;
+ pix->yres = yres;
}
void