mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
- Fixed: Floating point conversion error in SBarInfo DrawBar which broke interpolation.
This commit is contained in:
parent
b8e392eaa5
commit
624c935385
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue