Skip to content

Commit 20f9fd7

Browse files
authored
Merge pull request #43 from ekunuke/master
Fix DrawRectFilled calling wrong draw_list function.
2 parents cfd4f79 + 4004bfe commit 20f9fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imgui-SFML.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ void DrawRectFilled(const sf::FloatRect& rect, const sf::Color& color,
447447
float rounding, int rounding_corners)
448448
{
449449
ImDrawList* draw_list = ImGui::GetWindowDrawList();
450-
draw_list->AddRect(
450+
draw_list->AddRectFilled(
451451
getTopLeftAbsolute(rect),
452452
getDownRightAbsolute(rect),
453453
ColorConvertFloat4ToU32(color), rounding, rounding_corners);

0 commit comments

Comments
 (0)