From 271910e3495e686a252b4b85369dec0605ba0d20 Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 22 Jul 2024 19:43:59 +0200 Subject: [PATCH] Backends: SDL3: Update for API changes: SDL_GetDisplays() memory ownership change. (#7809) --- backends/imgui_impl_sdl3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/imgui_impl_sdl3.cpp b/backends/imgui_impl_sdl3.cpp index 8d02786d4..c54589487 100644 --- a/backends/imgui_impl_sdl3.cpp +++ b/backends/imgui_impl_sdl3.cpp @@ -789,7 +789,7 @@ static void ImGui_ImplSDL3_UpdateMonitors() bd->WantUpdateMonitors = false; int display_count; - SDL_DisplayID* displays = SDL_GetDisplays(&display_count); + const SDL_DisplayID* displays = SDL_GetDisplays(&display_count); for (int n = 0; n < display_count; n++) { // Warning: the validity of monitor DPI information on Windows depends on the application DPI awareness settings, which generally needs to be set in the manifest or at runtime.