mirror of
https://github.com/ocornut/imgui.git
synced 2026-08-22 23:31:13 +00:00
Checkbox, Menus: check marks use anti-aliased ends.
Currently not a satisfying resolution.
This commit is contained in:
@@ -182,6 +182,7 @@ HOW TO UPDATE?
|
||||
- Tree: hierarchy lines (when thickness>1.0f).
|
||||
- TabBar: selected overline border ((when thickness>1.0f).
|
||||
- Demo: Custom Rendering: canvas lines.
|
||||
- Checkbox, Menus: check marks use anti-aliased ends.
|
||||
- Demo: Custom Rendering: exposed new flags; Showcasing overlapping strokes and
|
||||
filled shapes; Added an option to animation thickness; Added new shapes to
|
||||
showcase new rendering features that previously hit limitations.
|
||||
|
||||
@@ -7579,7 +7579,7 @@ void ImGui::RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float
|
||||
draw_list->PathLineTo(ImVec2(bx - third, by - third));
|
||||
draw_list->PathLineTo(ImVec2(bx, by));
|
||||
draw_list->PathLineTo(ImVec2(bx + third * 2.0f, by - third * 2.0f));
|
||||
draw_list->PathStroke(col, thickness);
|
||||
draw_list->PathStroke(col, thickness, (draw_list->Flags & ImDrawFlags_AALines) ? ImDrawFlags_AALineEnds : 0); // FIXME: Design idiomatic selection/threshold for this?
|
||||
}
|
||||
|
||||
// Render an arrow. 'pos' is position of the arrow tip. half_sz.x is length from base to tip. half_sz.y is length on each side.
|
||||
|
||||
Reference in New Issue
Block a user