From d9f2f90a5a598890953476ee57e09ed67a4bb2f3 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Wed, 9 Apr 2025 19:35:54 +0200 Subject: [PATCH] fix image() after imgui update --- src/chat_gui4.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chat_gui4.cpp b/src/chat_gui4.cpp index 38f6c22..bdc3315 100644 --- a/src/chat_gui4.cpp +++ b/src/chat_gui4.cpp @@ -1336,11 +1336,12 @@ void ChatGui4::renderMessageBodyFile(Message3Registry& reg, const Message3 e) { ); auto [id, img_width, img_height] = _b_tc.get(o); - ImGui::Image( + ImGui::ImageWithBg( id, bar_size, {0.f, 0.f}, // default {1.f, 1.f}, // default + {0.f, 0.f, 0.f, 0.f}, // sadly bg was moved before tint (???) ImGui::GetStyleColorVec4(ImGuiCol_PlotHistogram) ); }