From 6e4d3dac1ae14fb4403a810e1c4d47e95b3d770f Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 7 Apr 2015 11:54:53 +0100 Subject: [PATCH] Examples: Fixed ShowExampleAppManipulatingWindowTitle() not doing the right thing, broken in ff35d24bcc110b8a698b18d35bbc282811d4006c --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index c6c0334b..f709a25a 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -10424,7 +10424,7 @@ static void ShowExampleAppManipulatingWindowTitle(bool* opened) // Using "###" to display a changing title but keep a static identifier "AnimatedTitle" char buf[128]; - ImFormatString(buf, IM_ARRAYSIZE(buf), "Animated title %c %d##AnimatedTitle", "|/-\\"[(int)(ImGui::GetTime()/0.25f)&3], rand()); + ImFormatString(buf, IM_ARRAYSIZE(buf), "Animated title %c %d###AnimatedTitle", "|/-\\"[(int)(ImGui::GetTime()/0.25f)&3], rand()); ImGui::SetNextWindowPos(ImVec2(100,300), ImGuiSetCond_FirstUseEver); ImGui::Begin(buf); ImGui::Text("This window has a changing title.");