1
0
mirror of https://github.com/ocornut/imgui.git synced 2025-02-21 12:52:19 +01:00

Demo: Allow Thickness < 1 in Custom Rendering

This commit is contained in:
thedmd 2024-09-10 05:06:37 +02:00 committed by ocornut
parent fb42e0e400
commit 101385af23

View File

@ -9400,7 +9400,7 @@ static void ShowExampleAppCustomRendering(bool* p_open)
static int curve_segments_override_v = 8;
static ImVec4 colf = ImVec4(1.0f, 1.0f, 0.4f, 1.0f);
ImGui::DragFloat("Size", &sz, 0.2f, 2.0f, 100.0f, "%.0f");
ImGui::DragFloat("Thickness", &thickness, 0.05f, 1.0f, 8.0f, "%.02f");
ImGui::DragFloat("Thickness", &thickness, 0.05f, 0.0f, 8.0f, "%.02f");
ImGui::SliderInt("N-gon sides", &ngon_sides, 3, 12);
ImGui::Checkbox("##circlesegmentoverride", &circle_segments_override);
ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x);