diff options
author | Tor Andersson <tor@ghostscript.com> | 2009-03-11 22:02:49 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2009-03-11 22:02:49 +0100 |
commit | 9f6a77c2d17128a44bf2fc9fead449a05354def5 (patch) | |
tree | 905d3c56580a906b77b1ca2660cb6f3fd123b945 /fitzdraw | |
parent | 31733cfd3ba1a920542da3792f2591cf7ba5f62a (diff) | |
download | mupdf-9f6a77c2d17128a44bf2fc9fead449a05354def5.tar.xz |
Rename and prune some files and functions.
Diffstat (limited to 'fitzdraw')
-rw-r--r-- | fitzdraw/pathscan.c | 6 |
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 }; /* |