summaryrefslogtreecommitdiff
path: root/fitzdraw/pathscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitzdraw/pathscan.c')
-rw-r--r--fitzdraw/pathscan.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fitzdraw/pathscan.c b/fitzdraw/pathscan.c
index dec7c73f..2ab7d5b6 100644
--- a/fitzdraw/pathscan.c
+++ b/fitzdraw/pathscan.c
@@ -2,6 +2,12 @@
#include "fitz_tree.h"
#include "fitz_draw.h"
+/* divide and floor towards -inf */
+static inline int fz_idiv(int a, int b)
+{
+ return a < 0 ? (a - b + 1) / b : a / b;
+}
+
enum { HSCALE = 17, VSCALE = 15, SF = 1 };
/*