1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-11 00:04:24 +00:00

(Breaking) Fonts: renamed AddCustomRectRegular() -> AddCustomRect().

This commit is contained in:
ocornut 2025-03-31 17:03:03 +02:00
parent 253dff7656
commit f40274702d
2 changed files with 5 additions and 3 deletions

View file

@ -2498,7 +2498,7 @@ void ImTextureData::DestroyPixels()
// - ImFontAtlas::RemoveFont()
// - ImFontAtlasBuildNotifySetFont()
//-----------------------------------------------------------------------------
// - ImFontAtlas::AddCustomRectRegular()
// - ImFontAtlas::AddCustomRect()
// - ImFontAtlas::AddCustomRectFontGlyph()
// - ImFontAtlas::GetCustomRect()
// - ImFontAtlas::GetCustomRectUV()
@ -3223,7 +3223,7 @@ void ImFontAtlas::RemoveFont(ImFont* font)
ImFontAtlasBuildNotifySetFont(this, font, new_current_font);
}
int ImFontAtlas::AddCustomRectRegular(int width, int height)
int ImFontAtlas::AddCustomRect(int width, int height)
{
IM_ASSERT(width > 0 && width <= 0xFFFF);
IM_ASSERT(height > 0 && height <= 0xFFFF);