From 4004bfeea530c190ac8167d80ff0fc03f0ea87fb Mon Sep 17 00:00:00 2001 From: eugene-box Date: Fri, 26 Jan 2018 00:30:48 -0800 Subject: [PATCH] Fix DrawRectFilled calling wrong draw_list function. --- imgui-SFML.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui-SFML.cpp b/imgui-SFML.cpp index 64c7b9a..b1f869f 100644 --- a/imgui-SFML.cpp +++ b/imgui-SFML.cpp @@ -447,7 +447,7 @@ void DrawRectFilled(const sf::FloatRect& rect, const sf::Color& color, float rounding, int rounding_corners) { ImDrawList* draw_list = ImGui::GetWindowDrawList(); - draw_list->AddRect( + draw_list->AddRectFilled( getTopLeftAbsolute(rect), getDownRightAbsolute(rect), ColorConvertFloat4ToU32(color), rounding, rounding_corners);