mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-02 18:14:32 +00:00
Merge branch 'master' into docking
This commit is contained in:
@@ -5233,7 +5233,7 @@ ImFontBaked* ImFont::GetFontBaked(float size, float density)
|
||||
ImFontBaked* baked = LastBaked;
|
||||
|
||||
// Round font size
|
||||
// - ImGui::PushFontSize() will already round, but other paths calling GetFontBaked() directly also needs it (e.g. ImFontAtlasBuildPreloadAllGlyphRanges)
|
||||
// - ImGui::PushFont() will already round, but other paths calling GetFontBaked() directly also needs it (e.g. ImFontAtlasBuildPreloadAllGlyphRanges)
|
||||
size = ImGui::GetRoundedFontSize(size);
|
||||
|
||||
if (density < 0.0f)
|
||||
@@ -5711,7 +5711,7 @@ begin:
|
||||
}
|
||||
|
||||
// Edge case: calling RenderText() with unloaded glyphs triggering texture change. It doesn't happen via ImGui:: calls because CalcTextSize() is always used.
|
||||
if (cmd_count != draw_list->CmdBuffer.Size)
|
||||
if (cmd_count != draw_list->CmdBuffer.Size) //-V547
|
||||
{
|
||||
IM_ASSERT(draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 1].ElemCount == 0);
|
||||
draw_list->CmdBuffer.pop_back();
|
||||
|
||||
Reference in New Issue
Block a user