瀏覽代碼

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

ocornut 1 年之前
父節點
當前提交
271910e349
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backends/imgui_impl_sdl3.cpp

+ 1 - 1
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.