From b042fe12e6c413e3cdcd706949dd285571647848 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 6 Aug 2018 20:49:47 +0200 Subject: Reviewed spacings on latest PR --- src/textures.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/textures.c') diff --git a/src/textures.c b/src/textures.c index 54bbb105..1d052070 100644 --- a/src/textures.c +++ b/src/textures.c @@ -1060,7 +1060,7 @@ void ImageAlphaCrop(Image *image, float threshold) else if (crop.width < minx) crop.width = (float)minx; if (crop.height == 0.0f) crop.height = (float)miny; - else if (crop.height < (float) miny) crop.height = (float)miny; + else if (crop.height < (float)miny) crop.height = (float)miny; } } @@ -1588,12 +1588,12 @@ Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Co if ((unsigned char)text[i] != ' ') { - ImageDraw(&imText, imFont, letter.rec, (Rectangle){ (float) (posX + letter.offsetX), + ImageDraw(&imText, imFont, letter.rec, (Rectangle){ (float)(posX + letter.offsetX), (float)letter.offsetY, (float)letter.rec.width, (float)letter.rec.height }); } if (letter.advanceX == 0) posX += (int)(letter.rec.width + spacing); - else posX += letter.advanceX + (int) spacing; + else posX += letter.advanceX + (int)spacing; } } -- cgit v1.2.3