mirror of
https://github.com/ocornut/imgui.git
synced 2025-12-28 00:54:34 +00:00
(Breaking) Fonts: rename GetCustomRectByIndex() to GetCustomRect(). Made return struct const.
This commit is contained in:
@@ -2500,7 +2500,7 @@ void ImTextureData::DestroyPixels()
|
||||
//-----------------------------------------------------------------------------
|
||||
// - ImFontAtlas::AddCustomRectRegular()
|
||||
// - ImFontAtlas::AddCustomRectFontGlyph()
|
||||
// - ImFontAtlas::GetCustomRectByIndex()
|
||||
// - ImFontAtlas::GetCustomRect()
|
||||
// - ImFontAtlas::CalcCustomRectUV()
|
||||
// - ImFontAtlasGetMouseCursorTexData()
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -3293,9 +3293,9 @@ int ImFontAtlas::AddCustomRectFontGlyphForSize(ImFont* font, float font_size, Im
|
||||
}
|
||||
#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
|
||||
|
||||
ImTextureRect* ImFontAtlas::GetCustomRectByIndex(int idx)
|
||||
const ImTextureRect* ImFontAtlas::GetCustomRect(int id)
|
||||
{
|
||||
return ImFontAtlasPackGetRect(this, idx);
|
||||
return ImFontAtlasPackGetRect(this, (ImFontAtlasRectId)id);
|
||||
}
|
||||
|
||||
void ImFontAtlas::CalcCustomRectUV(const ImTextureRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max) const
|
||||
|
||||
Reference in New Issue
Block a user