1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-09 23:54:20 +00:00

Fonts: change uses of ImFontAtlasRect to ImTextureRect for simplicity.

This commit is contained in:
ocornut 2025-03-13 16:50:19 +01:00
parent e76cfe5aad
commit b12c42e75d
4 changed files with 23 additions and 33 deletions

View file

@ -534,7 +534,7 @@ ImFontGlyph* ImGui_ImplFreeType_FontBakedLoadGlyph(ImFontAtlas* atlas, ImFontCon
IM_ASSERT_USER_ERROR(pack_id >= 0, "Out of texture memory.");
return NULL;
}
ImFontAtlasRect* r = ImFontAtlasPackGetRect(atlas, pack_id);
ImTextureRect* r = ImFontAtlasPackGetRect(atlas, pack_id);
// Render pixels to our temporary buffer
atlas->Builder->TempBuffer.resize(w * h * 4);