mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
* Fixed obsucre crash when bar width is equal to max width.
This commit is contained in:
@@ -84,7 +84,7 @@ static bool bar(float _width, float _maxWidth, float _height, const ImVec4& _col
|
||||
itemHovered |= ImGui::IsItemHovered();
|
||||
|
||||
ImGui::SameLine();
|
||||
ImGui::InvisibleButton("", ImVec2(_maxWidth-_width, _height) );
|
||||
ImGui::InvisibleButton("", ImVec2(bx::max(1.0f, _maxWidth-_width), _height) );
|
||||
itemHovered |= ImGui::IsItemHovered();
|
||||
|
||||
ImGui::PopStyleVar(2);
|
||||
|
||||
Reference in New Issue
Block a user