Fix build with imgui 1.90
authorTimo Röhling <roehling@debian.org>
Sun, 28 Jan 2024 13:36:13 +0000 (14:36 +0100)
committerTimo Röhling <roehling@debian.org>
Fri, 17 May 2024 16:12:19 +0000 (18:12 +0200)
Gbp-Pq: Name 0021-Fix-build-with-imgui-1.90.patch

libs/filagui/src/ImGuiExtensions.cpp

index 89b5944d40ed281ac74f8e85cc51864051292bc7..074199a4f4770e88709ffead9578175cdad5d288 100644 (file)
@@ -119,7 +119,7 @@ static void PlotEx(ImGuiPlotType plot_type, const char* label, int series_count,
     const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0));
     ImGui::ItemSize(total_bb, style.FramePadding.y);
     if (!ImGui::ItemAdd(total_bb, 0, &frame_bb)) return;
-    const bool hovered = ImGui::ItemHoverable(inner_bb, 0);
+    const bool hovered = ImGui::ItemHoverable(inner_bb, 0, 0);
 
     // Determine scale from values if not specified
     if (scale_min == FLT_MAX || scale_max == FLT_MAX) {