summaryrefslogtreecommitdiff
path: root/xps/xps_image.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-04-04 00:59:49 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-04-04 00:59:49 +0200
commit68769d87e0c7fa0a365447d690eca45e48748bc4 (patch)
tree3aba2bf2952939e6b963ff36e2ddf1c815e4d9c4 /xps/xps_image.c
parent19a4d970f4530ad330e5a7ae28c84692ee5f6bc0 (diff)
downloadmupdf-68769d87e0c7fa0a365447d690eca45e48748bc4.tar.xz
xps: Always use floats for floating point math.
Diffstat (limited to 'xps/xps_image.c')
-rw-r--r--xps/xps_image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xps/xps_image.c b/xps/xps_image.c
index f4b75a1b..bc37d2e6 100644
--- a/xps/xps_image.c
+++ b/xps/xps_image.c
@@ -42,8 +42,8 @@ xps_paint_image_brush(xps_context *ctx, fz_matrix ctm, fz_rect area, char *base_
xml_element *root, void *vimage)
{
fz_pixmap *pixmap = vimage;
- float xs = pixmap->w * 96.0 / pixmap->xres;
- float ys = pixmap->h * 96.0 / pixmap->yres;
+ float xs = pixmap->w * 96 / pixmap->xres;
+ float ys = pixmap->h * 96 / pixmap->yres;
fz_matrix im = fz_scale(xs, -ys);
im.f = ys;
ctm = fz_concat(im, ctm);