[Base] Float clamping cleanup

This commit is contained in:
Triang3l
2021-06-05 14:55:55 +03:00
parent 89a7c8f41f
commit 3c20a83972
6 changed files with 26 additions and 15 deletions

View File

@@ -1031,7 +1031,7 @@ void ProgressBar(float frac, float width, float height = 0,
if (height == 0) {
height = ImGui::GetTextLineHeightWithSpacing();
}
frac = xe::saturate(frac);
frac = xe::saturate_unsigned(frac);
const auto fontAtlas = ImGui::GetIO().Fonts;