Fonts: Extract ImFontAtlasBuildGetFontBaked() out of ImFont::GetFontBaked() mostly for consistency with upcoming changes + tweak locals in AddFont().

This commit is contained in:
ocornut
2025-04-17 17:48:29 +02:00
parent 7840e453b5
commit bcd1a94b89
4 changed files with 46 additions and 46 deletions

View File

@@ -15770,7 +15770,7 @@ void ImGui::ShowFontAtlas(ImFontAtlas* atlas)
if (IsItemHovered())
highlight_r_id = id;
TableNextColumn();
Image(atlas->TexID, ImVec2(r.w, r.h), r.uv0, r.uv1);
Image(atlas->TexRef, ImVec2(r.w, r.h), r.uv0, r.uv1);
}
EndTable();
}