From 9c7ae203a22c54b3f47553a52c48fa2a6c083ae5 Mon Sep 17 00:00:00 2001 From: McCallisterRomer <47375742+McCallisterRomer@users.noreply.github.com> Date: Sun, 27 Oct 2024 14:50:35 -0500 Subject: [PATCH 1/3] uncomment obsolete redirect --- imgui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.h b/imgui.h index 04f958eec69b..6c02b03d8c5e 100644 --- a/imgui.h +++ b/imgui.h @@ -1552,7 +1552,7 @@ enum ImGuiKey : int #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS ImGuiMod_Shortcut = ImGuiMod_Ctrl, // Removed in 1.90.7, you can now simply use ImGuiMod_Ctrl ImGuiKey_ModCtrl = ImGuiMod_Ctrl, ImGuiKey_ModShift = ImGuiMod_Shift, ImGuiKey_ModAlt = ImGuiMod_Alt, ImGuiKey_ModSuper = ImGuiMod_Super, // Renamed in 1.89 - //ImGuiKey_KeyPadEnter = ImGuiKey_KeypadEnter, // Renamed in 1.87 + ImGuiKey_KeyPadEnter = ImGuiKey_KeypadEnter, // Renamed in 1.87 #endif }; From cdcc0b4300b01fdd7323ee56114a4cf494d1697d Mon Sep 17 00:00:00 2001 From: McCallisterRomer <47375742+McCallisterRomer@users.noreply.github.com> Date: Mon, 28 Oct 2024 03:31:04 -0500 Subject: [PATCH 2/3] Revert ImTextureID to void* --- imgui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.h b/imgui.h index 6c02b03d8c5e..decf124e4bdf 100644 --- a/imgui.h +++ b/imgui.h @@ -252,7 +252,7 @@ typedef int ImGuiWindowFlags; // -> enum ImGuiWindowFlags_ // Flags: f // - You can make this a structure with various constructors if you need. You will have to implement ==/!= operators. // - (note: before v1.91.4 (2024/10/08) the default type for ImTextureID was void*. Use intermediary intptr_t cast and read FAQ if you have casting warnings) #ifndef ImTextureID -typedef ImU64 ImTextureID; // Default: store a pointer or an integer fitting in a pointer (most renderer backends are ok with that) +typedef void* ImTextureID; // Default: store a pointer or an integer fitting in a pointer (most renderer backends are ok with that) #endif // ImDrawIdx: vertex index. [Compile-time configurable type] From b66771977c2cab2b1292f26407dd9061d6611d73 Mon Sep 17 00:00:00 2001 From: McCallisterRomer Date: Fri, 4 Apr 2025 16:02:58 -0500 Subject: [PATCH 3/3] add sdk backend header --- backends/imgui_impl_sdl.h | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 backends/imgui_impl_sdl.h diff --git a/backends/imgui_impl_sdl.h b/backends/imgui_impl_sdl.h new file mode 100644 index 000000000000..f201fd4586f0 --- /dev/null +++ b/backends/imgui_impl_sdl.h @@ -0,0 +1,2 @@ +#pragma once +#include "imgui_impl_sdl2.h"