aboutsummaryrefslogtreecommitdiff
path: root/graphics/poppler/files
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2005-03-12 11:05:38 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2005-03-12 11:05:38 +0000
commit2928c5137a9d6b378a289b3d968df81da0fef8bd (patch)
tree60dfb7b4efb8ba204baabf99216cbf371ba533ff /graphics/poppler/files
parentebfae590f20141a525b7803823fa8c115997107f (diff)
Notes
Diffstat (limited to 'graphics/poppler/files')
-rw-r--r--graphics/poppler/files/patch-poppler_CairoOutputDev.cc33
1 files changed, 33 insertions, 0 deletions
diff --git a/graphics/poppler/files/patch-poppler_CairoOutputDev.cc b/graphics/poppler/files/patch-poppler_CairoOutputDev.cc
new file mode 100644
index 000000000000..67ad678484ad
--- /dev/null
+++ b/graphics/poppler/files/patch-poppler_CairoOutputDev.cc
@@ -0,0 +1,33 @@
+--- poppler/CairoOutputDev.cc.orig Thu Mar 3 03:10:24 2005
++++ poppler/CairoOutputDev.cc Thu Mar 3 03:10:58 2005
+@@ -240,7 +240,7 @@
+ if (subpath->getNumPoints() > 0) {
+ state->transform(subpath->getX(0), subpath->getY(0), &x1, &y1);
+ if (snapToGrid) {
+- x1 = round (x1); y1 = round (y1);
++ x1 = rint (x1); y1 = rint (y1);
+ }
+ cairo_move_to (cairo, x1, y1);
+ LOG (printf ("move_to %f, %f\n", x1, y1));
+@@ -248,9 +248,9 @@
+ while (j < subpath->getNumPoints()) {
+ if (subpath->getCurve(j)) {
+ if (snapToGrid) {
+- x1 = round (x1); y1 = round (y1);
+- x2 = round (x2); y2 = round (y2);
+- x3 = round (x3); y3 = round (y3);
++ x1 = rint (x1); y1 = rint (y1);
++ x2 = rint (x2); y2 = rint (y2);
++ x3 = rint (x3); y3 = rint (y3);
+ }
+ state->transform(subpath->getX(j), subpath->getY(j), &x1, &y1);
+ state->transform(subpath->getX(j+1), subpath->getY(j+1), &x2, &y2);
+@@ -264,7 +264,7 @@
+ } else {
+ state->transform(subpath->getX(j), subpath->getY(j), &x1, &y1);
+ if (snapToGrid) {
+- x1 = round (x1); y1 = round (y1);
++ x1 = rint (x1); y1 = rint (y1);
+ }
+ cairo_line_to (cairo, x1, y1);
+ LOG(printf ("line_to %f, %f\n", x1, y1));