summaryrefslogtreecommitdiffhomepage
path: root/src/rtextures.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2022-02-18 20:30:46 +0100
committerraysan5 <[email protected]>2022-02-18 20:30:46 +0100
commitd4382f4a52e7631bf02ff8073ed24b282596ce0a (patch)
treec0aaaee0698ea8e740ee7af6975df1db4949c8b7 /src/rtextures.c
parent963de06d08f28784e03b6cfa994d545f9e0ef8b5 (diff)
downloadraylib-d4382f4a52e7631bf02ff8073ed24b282596ce0a.tar.gz
raylib-d4382f4a52e7631bf02ff8073ed24b282596ce0a.zip
Removed trailing spaces
Diffstat (limited to 'src/rtextures.c')
-rw-r--r--src/rtextures.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rtextures.c b/src/rtextures.c
index 12732274..c4cf1903 100644
--- a/src/rtextures.c
+++ b/src/rtextures.c
@@ -133,7 +133,7 @@
#if defined(SUPPORT_FILEFORMAT_QOI)
#define QOI_MALLOC RL_MALLOC
#define QOI_FREE RL_FREE
-
+
#define QOI_IMPLEMENTATION
#include "external/qoi.h"
#endif
@@ -375,7 +375,7 @@ Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, i
}
#endif
#if defined(SUPPORT_FILEFORMAT_QOI)
- else if (strcmp(fileType, ".qoi") == 0)
+ else if (strcmp(fileType, ".qoi") == 0)
{
qoi_desc desc = { 0 };
image.data = qoi_decode(fileData, dataSize, &desc, 4);
@@ -500,7 +500,7 @@ bool ExportImage(Image image, const char *fileName)
else if (IsFileExtension(fileName, ".tga")) success = stbi_write_tga(fileName, image.width, image.height, channels, imgData);
#endif
#if defined(SUPPORT_FILEFORMAT_JPG)
- else if (IsFileExtension(fileName, ".jpg") ||
+ else if (IsFileExtension(fileName, ".jpg") ||
IsFileExtension(fileName, ".jpeg")) success = stbi_write_jpg(fileName, image.width, image.height, channels, imgData, 90); // JPG quality: between 1 and 100
#endif
#if defined(SUPPORT_FILEFORMAT_QOI)
@@ -510,11 +510,11 @@ bool ExportImage(Image image, const char *fileName)
if (image.format == PIXELFORMAT_UNCOMPRESSED_R8G8B8) channels = 3;
else if (image.format == PIXELFORMAT_UNCOMPRESSED_R8G8B8A8) channels = 4;
else TRACELOG(LOG_WARNING, "IMAGE: Image pixel format must be R8G8B8 or R8G8B8A8");
-
+
if ((channels == 3) || (channels == 4))
{
qoi_desc desc = { 0 };
- desc.width = image.width;
+ desc.width = image.width;
desc.height = image.height;
desc.channels = channels;
desc.colorspace = QOI_SRGB;
@@ -2771,7 +2771,7 @@ void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color
// [x] Consider fast path: same src/dst format with no alpha -> direct line copy
// [-] GetPixelColor(): Get Vector4 instead of Color, easier for ColorAlphaBlend()
// [ ] Support f32bit channels drawing
-
+
// TODO: Support PIXELFORMAT_UNCOMPRESSED_R32, PIXELFORMAT_UNCOMPRESSED_R32G32B32, PIXELFORMAT_UNCOMPRESSED_R32G32B32A32
Color colSrc, colDst, blend;
@@ -2954,7 +2954,7 @@ TextureCubemap LoadTextureCubemap(Image image, int layout)
ImageFormat(&faces, image.format);
// NOTE: Image formating does not work with compressed textures
-
+
for (int i = 0; i < 6; i++) ImageDraw(&faces, image, faceRecs[i], (Rectangle){ 0, (float)size*i, (float)size, (float)size }, WHITE);
}