From d317951b370ff192c4562104c1350cb3e22a9d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 27 Apr 2018 16:17:25 -0700 Subject: [PATCH] Demo: Fixed demo from using obsolete functions. --- imgui_demo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui_demo.cpp b/imgui_demo.cpp index 0e85d7ef..c885a30b 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -1708,14 +1708,14 @@ void ImGui::ShowDemoWindow(bool* p_open) ImGui::Text("ImGui"); ImGui::Button("Apple"); static float foo = 1.0f; - ImGui::InputFloat("red", &foo, 0.05f, 0, 3); + ImGui::InputFloat("red", &foo, 0.05f, 0, "%.3f"); ImGui::Text("An extra line here."); ImGui::NextColumn(); ImGui::Text("Sailor"); ImGui::Button("Corniflower"); static float bar = 1.0f; - ImGui::InputFloat("blue", &bar, 0.05f, 0, 3); + ImGui::InputFloat("blue", &bar, 0.05f, 0, "%.3f"); ImGui::NextColumn(); if (ImGui::CollapsingHeader("Category A")) { ImGui::Text("Blah blah blah"); } ImGui::NextColumn();