Quick fix

This commit is contained in:
Olly Rybak
2024-05-31 21:18:00 +10:00
parent 65e852600a
commit 8b72c063a8

View File

@@ -220,7 +220,7 @@ namespace FlaxEngine.GUI
{
base.DrawSelf();
float progressNormalized = (_current - _minimum) / _maximum;
float progressNormalized = Mathf.InverseLerp(_minimum, _maximum, _current);
if (progressNormalized > 0.001f)
{
Rectangle barRect = new Rectangle(0, 0, Width * progressNormalized, Height);