diff options
| author | Ray <raysan5@gmail.com> | 2018-08-06 20:49:47 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2018-08-06 20:49:47 +0200 |
| commit | b042fe12e6c413e3cdcd706949dd285571647848 (patch) | |
| tree | 87e75ab82274b61cd925e50bc596b1e47ea67635 /src/textures.c | |
| parent | 61b32e45ed9f28c2d41a0d004032941ab27780a3 (diff) | |
| download | raylib-b042fe12e6c413e3cdcd706949dd285571647848.tar.gz raylib-b042fe12e6c413e3cdcd706949dd285571647848.zip | |
Reviewed spacings on latest PR
Diffstat (limited to 'src/textures.c')
| -rw-r--r-- | src/textures.c | 6 |
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; } } |
