mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-09 09:19:58 +01:00
bugfix linux shared webcam ui
This commit is contained in:
@@ -148,7 +148,7 @@ bool ImGuiToolkit::ButtonIcon(int i, int j, const char *tooltip)
|
||||
bool ret = ImGui::ImageButton((void*)(intptr_t)textureicons, ImVec2(ImGui::GetTextLineHeightWithSpacing(),ImGui::GetTextLineHeightWithSpacing()), uv0, uv1, 3);
|
||||
ImGui::PopID();
|
||||
|
||||
if (tooltip != nullptr)
|
||||
if (tooltip != nullptr && ImGui::IsItemHovered())
|
||||
ImGuiToolkit::ToolTip(tooltip);
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -1225,7 +1225,7 @@ void UserInterface::RenderPreview()
|
||||
ImGui::InputText("##cmd1", dummy_str, IM_ARRAYSIZE(dummy_str), ImGuiInputTextFlags_ReadOnly);
|
||||
ImGui::SameLine();
|
||||
ImGui::PushID(358794);
|
||||
if ( ImGuiToolkit::ButtonIcon(3,6, "Copy to clipboard") )
|
||||
if ( ImGuiToolkit::ButtonIcon(11,2, "Copy to clipboard") )
|
||||
ImGui::SetClipboardText(dummy_str);
|
||||
ImGui::PopID();
|
||||
|
||||
@@ -1235,7 +1235,7 @@ void UserInterface::RenderPreview()
|
||||
ImGui::InputText("##cmd2", dummy_str, IM_ARRAYSIZE(dummy_str), ImGuiInputTextFlags_ReadOnly);
|
||||
ImGui::SameLine();
|
||||
ImGui::PushID(899872);
|
||||
if ( ImGuiToolkit::ButtonIcon(3,6, "Copy to clipboard") )
|
||||
if ( ImGuiToolkit::ButtonIcon(11,2, "Copy to clipboard") )
|
||||
ImGui::SetClipboardText(dummy_str);
|
||||
ImGui::PopID();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user