From af95b3b71d0bdb35726f3c52fb8d2ea679f17353 Mon Sep 17 00:00:00 2001 From: iikare <13582030+iikare@users.noreply.github.com> Date: Sun, 26 Jun 2022 21:58:24 -0700 Subject: [PATCH] improve `GenImageFontAtlas()` logging --- src/rtext.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rtext.c b/src/rtext.c index 756b45e60..83597a85d 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -715,12 +715,13 @@ Image GenImageFontAtlas(const GlyphInfo *chars, Rectangle **charRecs, int glyphC // Recreate the atlas for the new, doubled size when all glyphs don't fit on the previous-sized atlas // (but not on the first pass) RL_FREE(atlas.data); + + TRACELOG(LOG_INFO, "FONT: Font atlas of size %ix%i undersized, expanding atlas to %ix%i", atlas.width, atlas.height, atlas.width*2, atlas.height*2); atlas.width = atlas.width*2; // Atlas bitmap width atlas.height = atlas.height*2; // Atlas bitmap height atlas.data = (unsigned char *)RL_CALLOC(1, atlas.width*atlas.height); // Create a bitmap to store characters (8 bpp) - TRACELOG(LOG_INFO, "FONT: Font atlas undersized, expanding atlas to %ix%i", atlas.width, atlas.height); - + // undersizedAtlasFlag = false; }