From 9f6a77c2d17128a44bf2fc9fead449a05354def5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 11 Mar 2009 22:02:49 +0100 Subject: Rename and prune some files and functions. --- fitzdraw/pathscan.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fitzdraw') 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 }; /* -- cgit v1.2.3