From fe595d60f7c15d93e03a5c82c90620dddafa7fc7 Mon Sep 17 00:00:00 2001 From: Ray <raysan5@gmail.com> Date: Mon, 8 May 2023 18:57:36 +0200 Subject: [PATCH] Remove trailing spaces --- src/external/rl_gputex.h | 2 +- src/raymath.h | 4 ++-- src/utils.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/external/rl_gputex.h b/src/external/rl_gputex.h index f7cc00ecf..fa39fe29c 100644 --- a/src/external/rl_gputex.h +++ b/src/external/rl_gputex.h @@ -9,7 +9,7 @@ * * Note that some file formats (DDS, PVR, KTX) also support uncompressed data storage. * In those cases data is loaded uncompressed and format is returned. -* +* * TODO: * - Implement raylib function: rlGetGlTextureFormats(), required by rl_save_ktx_to_memory() * - Review rl_load_ktx_from_memory() to support KTX v2.2 specs diff --git a/src/raymath.h b/src/raymath.h index fbb970486..47728ff69 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -3,10 +3,10 @@ * raymath v1.5 - Math functions to work with Vector2, Vector3, Matrix and Quaternions * * CONVENTIONS: -* - Matrix structure is defined as row-major (memory layout) but parameters naming AND all +* - Matrix structure is defined as row-major (memory layout) but parameters naming AND all * math operations performed by the library consider the structure as it was column-major * It is like transposed versions of the matrices are used for all the maths -* It benefits some functions making them cache-friendly and also avoids matrix +* It benefits some functions making them cache-friendly and also avoids matrix * transpositions sometimes required by OpenGL * Example: In memory order, row0 is [m0 m4 m8 m12] but in semantic math row0 is [m0 m1 m2 m3] * - Functions are always self-contained, no function use another raymath function inside, diff --git a/src/utils.c b/src/utils.c index 4175fb693..01ca235fa 100644 --- a/src/utils.c +++ b/src/utils.c @@ -298,7 +298,7 @@ bool ExportDataAsCode(const unsigned char *data, unsigned int size, const char * char varFileName[256] = { 0 }; strcpy(varFileName, GetFileNameWithoutExt(fileName)); for (int i = 0; varFileName[i] != '\0'; i++) if ((varFileName[i] >= 'a') && (varFileName[i] <= 'z')) { varFileName[i] = varFileName[i] - 32; } - + byteCount += sprintf(txtData + byteCount, "#define %s_DATA_SIZE %i\n\n", varFileName, size); byteCount += sprintf(txtData + byteCount, "static unsigned char %s_DATA[%s_DATA_SIZE] = { ", varFileName, varFileName);