diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-04 00:59:49 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-04 00:59:49 +0200 |
commit | 68769d87e0c7fa0a365447d690eca45e48748bc4 (patch) | |
tree | 3aba2bf2952939e6b963ff36e2ddf1c815e4d9c4 /xps/xps_image.c | |
parent | 19a4d970f4530ad330e5a7ae28c84692ee5f6bc0 (diff) | |
download | mupdf-68769d87e0c7fa0a365447d690eca45e48748bc4.tar.xz |
xps: Always use floats for floating point math.
Diffstat (limited to 'xps/xps_image.c')
-rw-r--r-- | xps/xps_image.c | 4 |
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); |