From 929bf7981a117359b1574d9097f650d152560e02 Mon Sep 17 00:00:00 2001 From: brunoherbelin Date: Sun, 2 Aug 2020 13:49:02 +0200 Subject: [PATCH] Changed my mind: using an even more clear toggle button for image processing on/off. --- ImGuiVisitor.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ImGuiVisitor.cpp b/ImGuiVisitor.cpp index ab94144..53051b3 100644 --- a/ImGuiVisitor.cpp +++ b/ImGuiVisitor.cpp @@ -281,10 +281,8 @@ void ImGuiVisitor::visit (Source& s) // toggle enable/disable image processing bool on = s.imageProcessingEnabled(); ImGui::SetCursorPos( ImVec2(preview_width + 15, pos.y -ImGui::GetFrameHeight() ) ); - const char *tooltip[2] = {"Image editing filters\nDisabled: showing raw frames", - "Image editing filters\nEnabled : using GPU image processing"}; - if (ImGuiToolkit::IconToggle(2, 9, 3, 9, &on, tooltip)) - s.setImageProcessingEnabled(on); + ImGuiToolkit::ButtonToggle(ICON_FA_MAGIC, &on); + s.setImageProcessingEnabled(on); ImGui::SetCursorPos(pos); // ...come back