Fix build with imgui 1.90
authorTimo Röhling <roehling@debian.org>
Sun, 28 Jan 2024 13:36:44 +0000 (14:36 +0100)
committerTimo Röhling <roehling@debian.org>
Sun, 28 Jan 2024 13:36:44 +0000 (14:36 +0100)
Closes: #1061621
debian/patches/0021-Fix-build-with-imgui-1.90.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0021-Fix-build-with-imgui-1.90.patch b/debian/patches/0021-Fix-build-with-imgui-1.90.patch
new file mode 100644 (file)
index 0000000..77c4da9
--- /dev/null
@@ -0,0 +1,21 @@
+From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
+Date: Sun, 28 Jan 2024 14:36:13 +0100
+Subject: Fix build with imgui 1.90
+
+---
+ libs/filagui/src/ImGuiExtensions.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libs/filagui/src/ImGuiExtensions.cpp b/libs/filagui/src/ImGuiExtensions.cpp
+index 89b5944..074199a 100644
+--- a/libs/filagui/src/ImGuiExtensions.cpp
++++ b/libs/filagui/src/ImGuiExtensions.cpp
+@@ -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) {
index aa9e61625300883ea12966a9c650bb22440c820b..b887976063e965b301a13ef844087ee4133ce2e2 100644 (file)
@@ -18,3 +18,4 @@
 0018-Fix-compatibility-with-spirv-cross-SDK-1.3.236.patch
 0019-Fix-build-with-gcc-13.patch
 0020-Do-not-overwrite-debianized-ImportExecutables.patch
+0021-Fix-build-with-imgui-1.90.patch