Skip to content

Commit 62472a5

Browse files
committed
🚧 Internals: Minor renaming
1 parent 2627287 commit 62472a5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

imgui-core/src/main/kotlin/imgui/font/FontAtlas.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ class FontAtlas {
532532

533533
assert(configData.isNotEmpty())
534534

535-
buildRegisterDefaultCustomRects()
535+
buildInit()
536536

537537
// Clear atlas
538538
texId = 0
@@ -784,7 +784,8 @@ class FontAtlas {
784784
return true
785785
}
786786

787-
fun buildRegisterDefaultCustomRects() {
787+
/** Register default custom rectangles (this is called/shared by both the stb_truetype and the FreeType builder) */
788+
fun buildInit() {
788789
if (customRectIds[0] >= 0) return
789790
customRectIds[0] = when {
790791
flags hasnt FontAtlasFlag.NoMouseCursors -> addCustomRectRegular(DefaultTexData.id, DefaultTexData.wHalf * 2 + 1, DefaultTexData.h)

0 commit comments

Comments
 (0)