Updated ImGui.

This commit is contained in:
Branimir Karadžić 2017-09-18 18:26:07 -07:00
parent ad4be46c79
commit 3e1b9c52eb
1 changed files with 4 additions and 1 deletions

View File

@ -9307,7 +9307,10 @@ static void ColorEditOptionsPopup(ImGuiColorEditFlags flags, float* col)
sprintf(buf, "(%d,%d,%d,%d)", cr, cg, cb, ca);
if (ImGui::Selectable(buf))
ImGui::SetClipboardText(buf);
sprintf(buf, (flags & ImGuiColorEditFlags_NoAlpha) ? "0x%02X%02X%02X" : "0x%02X%02X%02X%02X", cr, cg, cb, ca);
if (flags & ImGuiColorEditFlags_NoAlpha)
sprintf(buf, "0x%02X%02X%02X", cr, cg, cb);
else
sprintf(buf, "0x%02X%02X%02X%02X", cr, cg, cb, ca);
if (ImGui::Selectable(buf))
ImGui::SetClipboardText(buf);
ImGui::EndPopup();