trackbar bug fix, returning the correct number of tics

Keith Stevens fozziethebeat at gmail.com
Fri Mar 16 00:10:02 CDT 2007


hello,

This patch modifies the behavior of the response to TBM_GETNUMTICS.  the
trackbar getter and setter tests i submitted previously exposed that the
MSDN documentation does not give the correct formula for calculating the
number of tics.  As they state: if the tic frequency is smaller than the max
range - the min range, then the result will be:
(maxrange - minrange)/ticfreq + 2.

instead the behavior is:
(maxrange - minrange/ticfreq) + 1

this patch simply implements the observed behavior exposed by the tests

-keith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-patches/attachments/20070315/84db7766/attachment.htm


More information about the wine-patches mailing list