mirror of
https://github.com/raysan5/raylib.git
synced 2026-03-29 20:01:59 +00:00
Remove trailing spaces
This commit is contained in:
@@ -2184,14 +2184,14 @@ void UpdateAudioStream(AudioStream stream, const void *data, int frameCount)
|
||||
bool IsAudioStreamProcessed(AudioStream stream)
|
||||
{
|
||||
bool result = false;
|
||||
|
||||
|
||||
if (stream.buffer != NULL)
|
||||
{
|
||||
ma_mutex_lock(&AUDIO.System.lock);
|
||||
result = stream.buffer->isSubBufferProcessed[0] || stream.buffer->isSubBufferProcessed[1];
|
||||
ma_mutex_unlock(&AUDIO.System.lock);
|
||||
}
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -2885,7 +2885,7 @@ static unsigned char *LoadFileData(const char *fileName, int *dataSize)
|
||||
static bool SaveFileData(const char *fileName, void *data, int dataSize)
|
||||
{
|
||||
bool result = true;
|
||||
|
||||
|
||||
if (fileName != NULL)
|
||||
{
|
||||
FILE *file = fopen(fileName, "wb");
|
||||
@@ -2919,7 +2919,7 @@ static bool SaveFileData(const char *fileName, void *data, int dataSize)
|
||||
static bool SaveFileText(const char *fileName, char *text)
|
||||
{
|
||||
bool result = true;
|
||||
|
||||
|
||||
if (fileName != NULL)
|
||||
{
|
||||
FILE *file = fopen(fileName, "wt");
|
||||
|
||||
@@ -2440,7 +2440,7 @@ bool CheckCollisionCircleLine(Vector2 center, float radius, Vector2 p1, Vector2
|
||||
float dx2 = (p1.x - (dotProduct*(dx))) - center.x;
|
||||
float dy2 = (p1.y - (dotProduct*(dy))) - center.y;
|
||||
float distanceSQ = ((dx2*dx2) + (dy2*dy2));
|
||||
|
||||
|
||||
if (distanceSQ <= radius*radius) collision = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1785,7 +1785,7 @@ char *TextReplace(const char *text, const char *search, const char *replacement)
|
||||
// Count the number of replacements needed
|
||||
insertPoint = (char *)text;
|
||||
for (count = 0; (tempPtr = strstr(insertPoint, search)); count++) insertPoint = tempPtr + searchLen;
|
||||
|
||||
|
||||
if ((textLen + count*(replaceLen - searchLen)) < (MAX_TEXT_BUFFER_LENGTH - 1))
|
||||
{
|
||||
// TODO: Allow copying data replaced up to maximum buffer size and stop
|
||||
@@ -1971,7 +1971,7 @@ char *TextInsert(const char *text, const char *insert, int position)
|
||||
{
|
||||
int textLen = TextLength(text);
|
||||
int insertLen = TextLength(insert);
|
||||
|
||||
|
||||
if ((textLen + insertLen) < (MAX_TEXT_BUFFER_LENGTH - 1))
|
||||
{
|
||||
// TODO: Allow copying data inserted up to maximum buffer size and stop
|
||||
|
||||
Reference in New Issue
Block a user