From c2e1e38009aa5e448ef19d52c06e83d006f783a6 Mon Sep 17 00:00:00 2001 From: Hanaxar <87268284+hanaxar@users.noreply.github.com> Date: Fri, 17 Mar 2023 13:51:23 +0300 Subject: [PATCH] Update rtext.c --- src/rtext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtext.c b/src/rtext.c index b25938ae6..f531361a5 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -702,7 +702,7 @@ Image GenImageFontAtlas(const GlyphInfo *chars, Rectangle **charRecs, int glyphC do { imageSize *= 2; // Double the size of image (to keep POT) - rowCount = imageSize/(fontSize + 2*padding) + 1; // Calculate new row count for the new image size + rowCount = imageSize/(fontSize + 2*padding); // Calculate new row count for the new image size } while (totalWidth > imageSize*rowCount);