(Breaking) Obsoleted style.AntiAliasedLinesUseTex which now only makes sense for legacy strokes. Added style.AntiAliasedLineEnds.

This commit is contained in:
ocornut
2026-07-27 21:41:18 +02:00
parent c52b050489
commit d482fe328e
3 changed files with 22 additions and 9 deletions

View File

@@ -8936,9 +8936,15 @@ void ImGui::ShowStyleEditor(ImGuiStyle* ref)
SameLine();
HelpMarker("When disabling anti-aliasing lines, you'll probably want to disable borders in your style as well.");
Checkbox("Anti-aliased line ends", &style.AntiAliasedLineEnds);
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
BeginDisabled();
Checkbox("Anti-aliased lines use texture", &style.AntiAliasedLinesUseTex);
SameLine();
HelpMarker("Faster lines using texture data. Require backend to render with bilinear filtering (not point/nearest filtering).");
EndDisabled();
#endif
Checkbox("Anti-aliased fill", &style.AntiAliasedFill);
PushItemWidth(GetFontSize() * 8);