[Scummvm-git-logs] scummvm master -> d4945bd30268216b695f71ee3f992ed5171a325f

sev- noreply at scummvm.org
Fri Aug 7 22:07:48 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
d4945bd302 IMGUI: Fix compilation


Commit: d4945bd30268216b695f71ee3f992ed5171a325f
    https://github.com/scummvm/scummvm/commit/d4945bd30268216b695f71ee3f992ed5171a325f
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-08-08T00:07:14+02:00

Commit Message:
IMGUI: Fix compilation

Changed paths:
    backends/imgui/backends/imgui_impl_sdl3.cpp
    backends/imgui/backends/imgui_impl_sdl3.h


diff --git a/backends/imgui/backends/imgui_impl_sdl3.cpp b/backends/imgui/backends/imgui_impl_sdl3.cpp
index 1271190f5f3..54e04ad4da8 100644
--- a/backends/imgui/backends/imgui_impl_sdl3.cpp
+++ b/backends/imgui/backends/imgui_impl_sdl3.cpp
@@ -392,6 +392,11 @@ static void ImGui_ImplSDL3_UpdateKeyModifiers(SDL_Keymod sdl_key_mods)
     io.AddKeyEvent(ImGuiMod_Super, (sdl_key_mods & SDL_KMOD_GUI) != 0);
 }
 
+bool ImGui_ImplSDL3_Ready()
+{
+       return ImGui_ImplSDL3_GetBackendData() != nullptr;
+}
+
 // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs.
 // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data.
 // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data.
diff --git a/backends/imgui/backends/imgui_impl_sdl3.h b/backends/imgui/backends/imgui_impl_sdl3.h
index dd98c06064d..cfd6d672d85 100644
--- a/backends/imgui/backends/imgui_impl_sdl3.h
+++ b/backends/imgui/backends/imgui_impl_sdl3.h
@@ -41,6 +41,7 @@ IMGUI_IMPL_API bool     ImGui_ImplSDL3_InitForOther(SDL_Window* window);
 IMGUI_IMPL_API void     ImGui_ImplSDL3_Shutdown();
 IMGUI_IMPL_API void     ImGui_ImplSDL3_NewFrame();
 IMGUI_IMPL_API bool     ImGui_ImplSDL3_ProcessEvent(const SDL_Event* event);
+IMGUI_IMPL_API bool     ImGui_ImplSDL3_Ready();
 
 // Gamepad selection automatically starts in AutoFirst mode, picking first available SDL_Gamepad. You may override this.
 // When using manual mode, caller is responsible for opening/closing gamepad.




More information about the Scummvm-git-logs mailing list