summaryrefslogtreecommitdiffhomepage
path: root/src/textures.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-03-25 19:41:51 +0100
committerraysan5 <[email protected]>2020-03-25 19:41:51 +0100
commit7ae7a87f8ae10ed9c68f308a62d7d7b0dc31a55a (patch)
tree06f37bbdc5e36b7246222541a6cda655fdf9dbb3 /src/textures.c
parent3d41c1b6cd5e42e2334798fe6af9394a93c89713 (diff)
downloadraylib-7ae7a87f8ae10ed9c68f308a62d7d7b0dc31a55a.tar.gz
raylib-7ae7a87f8ae10ed9c68f308a62d7d7b0dc31a55a.zip
Remove trail spaces
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/textures.c b/src/textures.c
index 1a6b72ec..dc9491e3 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -127,7 +127,7 @@
#define STBIW_MALLOC RL_MALLOC
#define STBIW_FREE RL_FREE
#define STBIW_REALLOC RL_REALLOC
-
+
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "external/stb_image_write.h" // Required for: stbi_write_*()
#endif
@@ -135,7 +135,7 @@
#if defined(SUPPORT_IMAGE_MANIPULATION)
#define STBIR_MALLOC(size,c) ((void)(c), RL_MALLOC(size))
#define STBIR_FREE(ptr,c) ((void)(c), RL_FREE(ptr))
-
+
#define STB_IMAGE_RESIZE_IMPLEMENTATION
#include "external/stb_image_resize.h" // Required for: stbir_resize_uint8() [ImageResize()]
#endif
@@ -1966,17 +1966,17 @@ Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Co
textOffsetX = 0.0f;
}
else
- {
+ {
if ((codepoint != ' ') && (codepoint != '\t'))
{
Rectangle rec = { textOffsetX + font.chars[index].offsetX, textOffsetY + font.chars[index].offsetY, font.recs[index].width, font.recs[index].height };
ImageDraw(&imText, font.chars[index].image, (Rectangle){ 0, 0, font.chars[index].image.width, font.chars[index].image.height }, rec, tint);
}
-
+
if (font.chars[index].advanceX == 0) textOffsetX += (int)(font.recs[index].width + spacing);
else textOffsetX += font.chars[index].advanceX + (int)spacing;
}
-
+
i += (codepointByteCount - 1); // Move text bytes counter to next codepoint
}
@@ -2021,7 +2021,7 @@ void ImageClearBackground(Image *dst, Color color)
}
// Draw pixel within an image
-void ImageDrawPixel(Image *dst, Vector2 position, Color color)
+void ImageDrawPixel(Image *dst, Vector2 position, Color color)
{
ImageDrawRectangle(dst, (Rectangle){ position.x, position.y, 1.0f, 1.0f }, color);
}
@@ -2043,7 +2043,7 @@ void ImageDrawCircle(Image *dst, Vector2 center, int radius, Color color)
ImageDrawPixel(dst, (Vector2){ xc + y, yc - x }, color);
ImageDrawPixel(dst, (Vector2){ xc - y, yc - x }, color);
x++;
-
+
if (decesionParameter > 0)
{
y--;
@@ -2061,13 +2061,13 @@ void ImageDrawLineEx(Image *dst, Vector2 start, Vector2 end, Color color)
int slopeError = m - (x2 - x1);
for (int x = x1, y = y1; x <= x2; x++)
- {
+ {
ImageDrawPixel(dst, (Vector2){ x, y }, color);
slopeError += m;
if (slopeError >= 0)
{
- y++;
+ y++;
slopeError -= 2*(x2 - x1);
}
}