summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/pdf/pdfpage.w
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/pdf/pdfpage.w')
-rw-r--r--Build/source/texk/web2c/luatexdir/pdf/pdfpage.w20
1 files changed, 10 insertions, 10 deletions
diff --git a/Build/source/texk/web2c/luatexdir/pdf/pdfpage.w b/Build/source/texk/web2c/luatexdir/pdf/pdfpage.w
index dbbf8ec667c..1eab44418fe 100644
--- a/Build/source/texk/web2c/luatexdir/pdf/pdfpage.w
+++ b/Build/source/texk/web2c/luatexdir/pdf/pdfpage.w
@@ -105,16 +105,16 @@ boolean calc_pdfpos(pdfstructure * p, scaledpos pos)
boolean move_pdfpos = false;
switch (p->mode) {
case PMODE_PAGE:
- new.h = lround(pos.h * p->k1);
- new.v = lround(pos.v * p->k1);
+ new.h = i32round(pos.h * p->k1);
+ new.v = i32round(pos.v * p->k1);
p->cm[4].m = new.h - p->pdf.h.m; /* cm is concatenated */
p->cm[5].m = new.v - p->pdf.v.m;
if (new.h != p->pdf.h.m || new.v != p->pdf.v.m)
move_pdfpos = true;
break;
case PMODE_TEXT:
- new.h = lround(pos.h * p->k1);
- new.v = lround(pos.v * p->k1);
+ new.h = i32round(pos.h * p->k1);
+ new.v = i32round(pos.v * p->k1);
p->tm[4].m = new.h - p->pdf_bt_pos.h.m; /* Tm replaces */
p->tm[5].m = new.v - p->pdf_bt_pos.v.m;
if (new.h != p->pdf.h.m || new.v != p->pdf.v.m)
@@ -125,9 +125,9 @@ boolean calc_pdfpos(pdfstructure * p, scaledpos pos)
switch (p->wmode) {
case WMODE_H:
new.h =
- lround((pos.h * p->k1 - (double) p->pdf_tj_pos.h.m) * p->k2);
- new.v = lround(pos.v * p->k1);
- p->tj_delta.m = -lround((double)
+ i32round((pos.h * p->k1 - (double) p->pdf_tj_pos.h.m) * p->k2);
+ new.v = i32round(pos.v * p->k1);
+ p->tj_delta.m = -i32round((double)
((new.h - p->cw.m) / ten_pow[p->cw.e -
p->tj_delta.
e]));
@@ -136,11 +136,11 @@ boolean calc_pdfpos(pdfstructure * p, scaledpos pos)
move_pdfpos = true;
break;
case WMODE_V:
- new.h = lround(pos.h * p->k1);
+ new.h = i32round(pos.h * p->k1);
new.v =
- lround(((double) p->pdf_tj_pos.v.m - pos.v * p->k1) * p->k2);
+ i32round(((double) p->pdf_tj_pos.v.m - pos.v * p->k1) * p->k2);
p->tm[4].m = new.h - p->pdf_bt_pos.h.m; /* p->tm[5] is meaningless */
- p->tj_delta.m = -lround((double)
+ p->tj_delta.m = -i32round((double)
((new.v - p->cw.m) / ten_pow[p->cw.e -
p->tj_delta.
e]));