aboutsummaryrefslogtreecommitdiff
path: root/src/textures.c
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2018-08-06 20:49:47 +0200
committerRay <raysan5@gmail.com>2018-08-06 20:49:47 +0200
commitb042fe12e6c413e3cdcd706949dd285571647848 (patch)
tree87e75ab82274b61cd925e50bc596b1e47ea67635 /src/textures.c
parent61b32e45ed9f28c2d41a0d004032941ab27780a3 (diff)
downloadraylib-b042fe12e6c413e3cdcd706949dd285571647848.tar.gz
raylib-b042fe12e6c413e3cdcd706949dd285571647848.zip
Reviewed spacings on latest PR
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c6
1 files changed, 3 insertions, 3 deletions
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;
}
}