From ff35d24bcc110b8a698b18d35bbc282811d4006c Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 27 Mar 2015 19:34:01 +0000 Subject: [PATCH] Comments --- imgui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui.cpp b/imgui.cpp index 120e60309..03c052ddb 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -10246,9 +10246,9 @@ static void ShowExampleAppManipulatingWindowTitle(bool* opened) ImGui::Text("This is window 2.\nMy title is the same as window 1, but my identifier is unique."); ImGui::End(); - // Using "###" to display a changing title but keep a static identifier "MyWindow" + // Using "###" to display a changing title but keep a static identifier "AnimatedTitle" char buf[128]; - ImFormatString(buf, IM_ARRAYSIZE(buf), "Animated title %c %d###MyWindow", "|/-\\"[(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.");