mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
Changed my mind: using an even more clear toggle button for image
processing on/off.
This commit is contained in:
@@ -281,9 +281,7 @@ void ImGuiVisitor::visit (Source& s)
|
|||||||
// toggle enable/disable image processing
|
// toggle enable/disable image processing
|
||||||
bool on = s.imageProcessingEnabled();
|
bool on = s.imageProcessingEnabled();
|
||||||
ImGui::SetCursorPos( ImVec2(preview_width + 15, pos.y -ImGui::GetFrameHeight() ) );
|
ImGui::SetCursorPos( ImVec2(preview_width + 15, pos.y -ImGui::GetFrameHeight() ) );
|
||||||
const char *tooltip[2] = {"Image editing filters\nDisabled: showing raw frames",
|
ImGuiToolkit::ButtonToggle(ICON_FA_MAGIC, &on);
|
||||||
"Image editing filters\nEnabled : using GPU image processing"};
|
|
||||||
if (ImGuiToolkit::IconToggle(2, 9, 3, 9, &on, tooltip))
|
|
||||||
s.setImageProcessingEnabled(on);
|
s.setImageProcessingEnabled(on);
|
||||||
|
|
||||||
ImGui::SetCursorPos(pos); // ...come back
|
ImGui::SetCursorPos(pos); // ...come back
|
||||||
|
|||||||
Reference in New Issue
Block a user