Fix wheel resizing with resize increments
commit68bd644b0d3154b11ca5b782f8e3c851604fb2e6
authorBrad Jorsch <anomie@users.sourceforge.net>
Mon, 26 Apr 2010 17:56:38 +0000 (26 13:56 -0400)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 26 Apr 2010 21:23:56 +0000 (26 23:23 +0200)
tree4d460135bfe384fff27b5e722bb7b0c2720ba51a
parent4ddc2a5a0a88f17697687b0bf47f1cad963f46ca
Fix wheel resizing with resize increments

In C, dividing two integers automatically rounds towards zero, so ceil(a
/ b) is useless as the result is truncated before ceil ever sees it. The
correct result for positive integers is obtained by (a + b - 1) / b.
src/window.c