summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-05-08 19:45:48 (GMT)
committer John Mark Bell <jmb@netsurf-browser.org>2011-05-08 19:45:48 (GMT)
commite1b884b03ec0f2f2daf5602133b05e61b3c63d2f (patch)
tree7dc7a1f4ded38e99517cb4f2ced56ab6f41212a3
parent737224a85305d673fc17f14adfd23b6d70eb9aa8 (diff)
downloadttf2f-e1b884b03ec0f2f2daf5602133b05e61b3c63d2f.tar.gz
ttf2f-e1b884b03ec0f2f2daf5602133b05e61b3c63d2f.tar.bz2
Fix progress computation
svn path=/trunk/tools/ttf2f/; revision=12316
-rw-r--r--src/outlines.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/outlines.c b/src/outlines.c
index 14dab36..a3e6887 100644
--- a/src/outlines.c
+++ b/src/outlines.c
@@ -124,7 +124,8 @@ ttf2f_result outlines_write(const char *savein, const char *name,
unsigned int chunk_size;
ttf2f_result err;
- callback((chunk_table_entry * 100) / ((slots + 31) + ~31) / 32);
+ callback((chunk_table_entry * 100) /
+ (((slots + 31) & ~31) / 32));
ttf2f_poll(1);
/* Write chunk offset */