summaryrefslogtreecommitdiff
path: root/source/fitz/draw-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/draw-device.c')
-rw-r--r--source/fitz/draw-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c
index 4e10829f..7c811f5e 100644
--- a/source/fitz/draw-device.c
+++ b/source/fitz/draw-device.c
@@ -1202,7 +1202,7 @@ fz_transform_pixmap(fz_context *ctx, fz_draw_device *dev, const fz_pixmap *image
/* Downscale, non rectilinear case */
if (dx > 0 && dy > 0)
{
- scaled = fz_scale_pixmap_cached(ctx, image, 0, 0, (float)dx, (float)dy, NULL, dev->cache_x, dev->cache_y);
+ scaled = fz_scale_pixmap_cached(ctx, image, 0, 0, dx, dy, NULL, dev->cache_x, dev->cache_y);
return scaled;
}
@@ -1792,7 +1792,7 @@ fz_draw_begin_group(fz_context *ctx, fz_device *devp, const fz_rect *rect, int i
fz_copy_pixmap_rect(ctx, dest, state[0].dest, &bbox);
}
- if (blendmode == 0 && alpha == 1.0 && isolated)
+ if (blendmode == 0 && alpha == 1.0f && isolated)
{
/* We can render direct to any existing shape plane.
* If there isn't one, we don't need to make one. */