mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Fonts: PushFontSize() with -1 uses sources[0]'s size for now (backward compat design)
This commit is contained in:
parent
6580590226
commit
82b81fce68
1 changed files with 1 additions and 1 deletions
|
|
@ -8636,7 +8636,7 @@ void ImGui::PushFont(ImFont* font, float font_size)
|
|||
if (font == NULL)
|
||||
font = GetDefaultFont();
|
||||
if (font_size < 0.0f)
|
||||
font_size = g.FontSize;
|
||||
font_size = font->Sources[0].SizePixels; // g.FontSize;
|
||||
g.FontStack.push_back({ font, font_size });
|
||||
SetCurrentFont(font, font_size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue