fix_imgui_api.patch 1.2 KB

123456789101112131415
  1. diff --git a/imgui.h b/imgui.h
  2. index 78baa1b7bb10..6b7dd2b64b5c 100644
  3. --- a/imgui.h
  4. +++ b/imgui.h
  5. @@ -3329,8 +3329,8 @@ struct ImDrawList
  6. // Obsolete names
  7. #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
  8. - IMGUI_API void PushTextureID(ImTextureRef tex_ref) { PushTexture(tex_ref); } // RENAMED in 1.92.x
  9. - IMGUI_API void PopTextureID() { PopTexture(); } // RENAMED in 1.92.x
  10. + inline void PushTextureID(ImTextureRef tex_ref) { PushTexture(tex_ref); } // RENAMED in 1.92.x
  11. + inline void PopTextureID() { PopTexture(); } // RENAMED in 1.92.x
  12. #endif
  13. //inline void AddEllipse(const ImVec2& center, float radius_x, float radius_y, ImU32 col, float rot = 0.0f, int num_segments = 0, float thickness = 1.0f) { AddEllipse(center, ImVec2(radius_x, radius_y), col, rot, num_segments, thickness); } // OBSOLETED in 1.90.5 (Mar 2024)
  14. //inline void AddEllipseFilled(const ImVec2& center, float radius_x, float radius_y, ImU32 col, float rot = 0.0f, int num_segments = 0) { AddEllipseFilled(center, ImVec2(radius_x, radius_y), col, rot, num_segments); } // OBSOLETED in 1.90.5 (Mar 2024)