summaryrefslogtreecommitdiffstats
path: root/tests/auto/qstate/tst_qstate.cpp
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-04-23 21:25:35 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-04-23 21:25:35 (GMT)
commit686f82e51124747cbe650d04dfb053830b6660fa (patch)
tree25dfdbde3bbb5970b79bff5a456fb2ac38d3656d /tests/auto/qstate/tst_qstate.cpp
parenteaa9cedb527b59bdc58ea87a464f2a6c842246e6 (diff)
downloadQt-686f82e51124747cbe650d04dfb053830b6660fa.zip
Qt-686f82e51124747cbe650d04dfb053830b6660fa.tar.gz
Qt-686f82e51124747cbe650d04dfb053830b6660fa.tar.bz2
Fix a bug in the ease{In,Out}Bounce easing functions + small cleanup.
The bug was in easeOutBounce_helper(), where the last else-block adjusted t wrong. It should adjust t so that the peak is at t == 0, but it adjusted it too little. The old code did t -= (2.25f/2.75f), but it should have been 21/22. The rest of the changes in that function is just simple mathematical rewrites (use a more readable fraction), and removed the b argument, since that was always 0. Finally, fixing the original bug also revealed a bug in the first line of easeOutBounce_helper(), where we always returned 1.0 for t == 1.0. That was wrong since it did not respect c.
Diffstat (limited to 'tests/auto/qstate/tst_qstate.cpp')
0 files changed, 0 insertions, 0 deletions