Texture-based round corners: Tweaks, renaming to match tex lines branch.

This commit is contained in:
ocornut
2020-06-03 21:27:16 +02:00
parent f41e86c78e
commit 5947842934
4 changed files with 20 additions and 20 deletions

View File

@ -265,8 +265,8 @@ static void TestTextureBasedRender()
ImGui::Begin("tex_round_corners");
style.TexturedRoundCorners = io.KeyShift;
ImGui::Checkbox("style.TexturedRoundCorners (hold SHIFT to toggle)", &style.TexturedRoundCorners);
style.RoundCornersUseTex = io.KeyShift;
ImGui::Checkbox("style.RoundCornersUseTex (hold SHIFT to toggle)", &style.RoundCornersUseTex);
static float radius = 16.0f; // ImFontAtlasRoundCornersMaxSize * 0.5f;
static int segments = 20;
@ -348,7 +348,7 @@ static void TestTextureBasedRender()
ImGui::EndGroup();
}
ImGui::SameLine();
ImGui::SameLine();
{
ImGui::BeginGroup();
@ -6430,7 +6430,7 @@ void ImGui::ShowStyleEditor(ImGuiStyle* ref)
HelpMarker("Faster lines using texture data. Require backend to render with bilinear filtering (not point/nearest filtering).");
ImGui::Checkbox("Anti-aliased fill", &style.AntiAliasedFill);
ImGui::Checkbox("Rounded corner textures", &style.TexturedRoundCorners);
ImGui::Checkbox("Rounded corner textures", &style.RoundCornersUseTex);
ImGui::PushItemWidth(ImGui::GetFontSize() * 8);
ImGui::DragFloat("Curve Tessellation Tolerance", &style.CurveTessellationTol, 0.02f, 0.10f, 10.0f, "%.2f");
if (style.CurveTessellationTol < 0.10f) style.CurveTessellationTol = 0.10f;