Page-break penalties were calculated by taking the amount of spare space
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Fri, 24 Sep 2004 17:56:58 +0000 (17:56 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Fri, 24 Sep 2004 17:56:58 +0000 (17:56 +0000)
commit1ff614b1900f690416685827e1013c44b90727fb
treecd0085b8b01f2574435fd657361b344d4c168754
parentac71b3f5f790b70c3f4b9fe0afc952b131f56fc5
Page-break penalties were calculated by taking the amount of spare space
on the page (in internal units) and squaring it.  This was fine except that
fixed penalties weren't scaled by the size of an internal unit, so the page-
breaking changed when the units were changed.  Rather than scaling all the
fixed penalties, scale the space into 1/4096 point units before squaring it.

git-svn-id: svn://svn.tartarus.org/sgt/halibut@4575 cda61777-01e9-0310-a592-d414129be87e
bk_paper.c