From ad42787543123ba5af45414496e91270f0859474 Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 2 Sep 2014 14:36:03 +0100 Subject: [PATCH] Made radio button render ascii when logged into tty/file/clipboard --- imgui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index bdfe7326..8aef206a 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -3687,6 +3687,8 @@ bool RadioButton(const char* label, bool active) window->DrawList->AddCircle(center, radius, window->Color(ImGuiCol_Border), 16); } + if (g.LogEnabled) + LogText(text_bb.GetTL(), active ? "(x)" : "( )"); RenderText(text_bb.GetTL(), label); return pressed;