aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2019-02-22 12:12:21 +0100
committerRay <raysan5@gmail.com>2019-02-22 12:12:21 +0100
commita886f5e743cd50744d7800cd70a47f5cb9f663e3 (patch)
treeb045b074e038b75d275bded59a7f382f57ddcff4 /src
parent641895b5ba778fdc9024ebb58446dcc8ea36a00a (diff)
downloadraylib-a886f5e743cd50744d7800cd70a47f5cb9f663e3.tar.gz
raylib-a886f5e743cd50744d7800cd70a47f5cb9f663e3.zip
Remove TABS
Diffstat (limited to 'src')
-rw-r--r--src/core.c4
-rw-r--r--src/raudio.c4
-rw-r--r--src/shapes.c2
-rw-r--r--src/text.c8
-rw-r--r--src/textures.c2
5 files changed, 10 insertions, 10 deletions
diff --git a/src/core.c b/src/core.c
index 714e6e2c..9f62b4c8 100644
--- a/src/core.c
+++ b/src/core.c
@@ -871,7 +871,7 @@ void *GetWindowHandle(void)
{
#if defined(_WIN32)
// NOTE: Returned handle is: void *HWND (windows.h)
- return glfwGetWin32Window(window);
+ return glfwGetWin32Window(window);
#elif defined(__linux__)
// NOTE: Returned handle is: unsigned long Window (X.h)
// typedef unsigned long XID;
@@ -2213,7 +2213,7 @@ void SetMouseOffset(int offsetX, int offsetY)
// NOTE: Useful when rendering to different size targets
void SetMouseScale(float scaleX, float scaleY)
{
- mouseScale = (Vector2){ scaleX, scaleY };
+ mouseScale = (Vector2){ scaleX, scaleY };
}
// Returns mouse wheel movement Y
diff --git a/src/raudio.c b/src/raudio.c
index e1c9fd48..4f3e9220 100644
--- a/src/raudio.c
+++ b/src/raudio.c
@@ -1406,8 +1406,8 @@ void UpdateMusicStream(Music music)
UpdateAudioStream(music->stream, pcm, samplesCount);
if ((music->ctxType == MUSIC_MODULE_XM) || (music->ctxType == MUSIC_MODULE_MOD))
{
- if (samplesCount > 1) music->samplesLeft -= samplesCount/2;
- else music->samplesLeft -= samplesCount;
+ if (samplesCount > 1) music->samplesLeft -= samplesCount/2;
+ else music->samplesLeft -= samplesCount;
}
else music->samplesLeft -= samplesCount;
diff --git a/src/shapes.c b/src/shapes.c
index 87bb573c..dbc38082 100644
--- a/src/shapes.c
+++ b/src/shapes.c
@@ -644,7 +644,7 @@ bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec)
if (dy <= (rec.height/2.0f)) { return true; }
float cornerDistanceSq = (dx - rec.width/2.0f)*(dx - rec.width/2.0f) +
- (dy - rec.height/2.0f)*(dy - rec.height/2.0f);
+ (dy - rec.height/2.0f)*(dy - rec.height/2.0f);
return (cornerDistanceSq <= (radius*radius));
}
diff --git a/src/text.c b/src/text.c
index 9a7d690d..3a5b33d6 100644
--- a/src/text.c
+++ b/src/text.c
@@ -1386,10 +1386,10 @@ static Font LoadBMFont(const char *fileName)
char *lastSlash = NULL;
lastSlash = strrchr(fileName, '/');
- if (lastSlash == NULL)
- {
- lastSlash = strrchr(fileName, '\\');
- }
+ if (lastSlash == NULL)
+ {
+ lastSlash = strrchr(fileName, '\\');
+ }
// NOTE: We need some extra space to avoid memory corruption on next allocations!
texPath = malloc(strlen(fileName) - strlen(lastSlash) + strlen(texFileName) + 4);
diff --git a/src/textures.c b/src/textures.c
index 48b89384..5c48ba45 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -1631,7 +1631,7 @@ Color *ImageExtractPalette(Image image, int maxPaletteSize, int *extractCount)
if (palCount >= maxPaletteSize)
{
i = image.width*image.height; // Finish palette get
- printf("WARNING: Image palette is greater than %i colors!\n", maxPaletteSize);
+ TraceLog(LOG_WARNING, "Image palette is greater than %i colors!", maxPaletteSize);
}
}
}