Backends: SDL3: Update for API changes: SDL_GetDisplays() memory ownership change. (#7809)

This commit is contained in:
ocornut 2024-07-22 19:43:59 +02:00
parent 3fab2bb7be
commit 271910e349

View File

@ -789,7 +789,7 @@ static void ImGui_ImplSDL3_UpdateMonitors()
bd->WantUpdateMonitors = false; bd->WantUpdateMonitors = false;
int display_count; 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++) 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. // 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.