From dc9b2da16395c2f18cd7176ebeb842fe6f85b9b3 Mon Sep 17 00:00:00 2001 From: Luca Sas Date: Thu, 2 Apr 2020 22:50:51 +0100 Subject: [PATCH] Fixed code formatting to follow raylib notation rules --- src/text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/text.c b/src/text.c index f1ea53705..c31e416aa 100644 --- a/src/text.c +++ b/src/text.c @@ -640,7 +640,7 @@ Image GenImageFontAtlas(const CharInfo *chars, Rectangle **charRecs, int charsCo { for (int x = 0; x < chars[i].image.width; x++) { - ((unsigned char*)atlas.data)[(offsetY + y)*atlas.width + (offsetX + x)] = ((unsigned char*)chars[i].image.data)[y*chars[i].image.width + x]; + ((unsigned char *)atlas.data)[(offsetY + y)*atlas.width + (offsetX + x)] = ((unsigned char *)chars[i].image.data)[y*chars[i].image.width + x]; } } @@ -653,7 +653,7 @@ Image GenImageFontAtlas(const CharInfo *chars, Rectangle **charRecs, int charsCo // Move atlas position X for next character drawing offsetX += (chars[i].image.width + 2*padding); - if (offsetX >= (atlas.width - chars[i].image.width - 2 * padding)) + if (offsetX >= (atlas.width - chars[i].image.width - 2*padding)) { offsetX = padding;