- Fixed: Floating point conversion error in SBarInfo DrawBar which broke interpolation.

This commit is contained in:
Braden Obrzut 2016-06-12 06:28:50 -04:00
parent b8e392eaa5
commit 624c935385

View file

@ -2786,7 +2786,7 @@ class CommandDrawBar : public SBarInfoCommand
// [BL] Since we used a percentage (in order to get the most fluid animation)
// we need to establish a cut off point so the last pixel won't hang as the animation slows
if(pixel == -1 && statusBar->Images[foreground])
pixel = MAX(1., 1./statusBar->Images[foreground]->GetWidth());
pixel = MAX(1 / 65536., 1./statusBar->Images[foreground]->GetWidth());
if(fabs(drawValue - value) < pixel)
drawValue = value;