From a3af51fd4eec1405457c602b10d8c03f2b90d366 Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 19 Dec 2014 12:56:00 +0000 Subject: [PATCH] Added ImGuiStyleVar_WindowRounding enum for PushStyleVar() API --- imgui.cpp | 1 + imgui.h | 1 + 2 files changed, 2 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index 5a620c51..241213f7 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2720,6 +2720,7 @@ static float* GetStyleVarFloatAddr(ImGuiStyleVar idx) switch (idx) { case ImGuiStyleVar_Alpha: return &g.Style.Alpha; + case ImGuiStyleVar_WindowRounding: return &g.Style.WindowRounding; case ImGuiStyleVar_TreeNodeSpacing: return &g.Style.TreeNodeSpacing; case ImGuiStyleVar_ColumnsMinSpacing: return &g.Style.ColumnsMinSpacing; } diff --git a/imgui.h b/imgui.h index 68f37e66..7ff4471a 100644 --- a/imgui.h +++ b/imgui.h @@ -412,6 +412,7 @@ enum ImGuiStyleVar_ { ImGuiStyleVar_Alpha, // float ImGuiStyleVar_WindowPadding, // ImVec2 + ImGuiStyleVar_WindowRounding, // float ImGuiStyleVar_FramePadding, // ImVec2 ImGuiStyleVar_ItemSpacing, // ImVec2 ImGuiStyleVar_ItemInnerSpacing, // ImVec2