mirror of
https://github.com/ocornut/imgui.git
synced 2025-09-07 11:58:22 +00:00
Fonts: fixed broken support for legacy backend due to a mismatch with initial pre-build baked id.
This commit is contained in:
@@ -3002,6 +3002,7 @@ ImFont* ImFontAtlas::AddFont(const ImFontConfig* font_cfg_in)
|
||||
font->FontId = FontNextUniqueID++;
|
||||
font->Flags = font_cfg_in->Flags;
|
||||
font->DefaultSize = font_cfg_in->SizePixels;
|
||||
font->CurrentRasterizerDensity = font_cfg_in->RasterizerDensity;
|
||||
Fonts.push_back(font);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user