diff options
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/draw-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c index 60735460..a92c88b5 100644 --- a/source/fitz/draw-device.c +++ b/source/fitz/draw-device.c @@ -554,8 +554,8 @@ fz_draw_fill_text(fz_device *devp, fz_text *text, const fz_matrix *ctm, if (glyph) { fz_pixmap *pixmap = glyph->pixmap; - int x = (int)trm.e; - int y = (int)trm.f; + int x = floorf(trm.e); + int y = floorf(trm.f); if (pixmap == NULL || pixmap->n == 1) { draw_glyph(colorbv, state->dest, glyph, x, y, &state->scissor); |