mirror of
https://github.com/ocornut/imgui.git
synced 2025-02-21 12:52:19 +01:00
AA branch: fix lower-right bound of frame outlines
This commit is contained in:
parent
2f21347803
commit
0292c82b9c
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
// ANTI-ALIASED PRIMITIVES BRANCH
|
// ANTI-ALIASED PRIMITIVES BRANCH
|
||||||
// TODO
|
// TODO
|
||||||
// - check-box, slider grabs are not centered properly if you enable border (relate to point above)
|
|
||||||
// - support for thickness stroking. recently been added to the ImDrawList API as a convenience.
|
// - support for thickness stroking. recently been added to the ImDrawList API as a convenience.
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -2712,8 +2711,8 @@ static void RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border,
|
|||||||
window->DrawList->AddRectFilled(p_min, p_max, fill_col, rounding);
|
window->DrawList->AddRectFilled(p_min, p_max, fill_col, rounding);
|
||||||
if (border && (window->Flags & ImGuiWindowFlags_ShowBorders))
|
if (border && (window->Flags & ImGuiWindowFlags_ShowBorders))
|
||||||
{
|
{
|
||||||
window->DrawList->AddRect(p_min+ImVec2(1,1), p_max+ImVec2(1,1), window->Color(ImGuiCol_BorderShadow), rounding);
|
window->DrawList->AddRect(p_min+ImVec2(1,1), p_max, window->Color(ImGuiCol_BorderShadow), rounding);
|
||||||
window->DrawList->AddRect(p_min, p_max, window->Color(ImGuiCol_Border), rounding);
|
window->DrawList->AddRect(p_min, p_max-ImVec2(1,1), window->Color(ImGuiCol_Border), rounding);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user