summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2023-08-10 22:47:17 +0200
committerRay <[email protected]>2023-08-10 22:47:17 +0200
commit93f59a6f5912aa07fcfc2268ce119da09dff458a (patch)
tree7de73ac8e780731a1bbd3ce318f352578e099d1f
parentf1c31bee279285ad941acc1140caeb3dca86867f (diff)
downloadraylib-93f59a6f5912aa07fcfc2268ce119da09dff458a.tar.gz
raylib-93f59a6f5912aa07fcfc2268ce119da09dff458a.zip
Review tabs and trail-spaces
-rw-r--r--src/raudio.c4
-rw-r--r--src/raymath.h6
-rw-r--r--src/rcore.c2
-rw-r--r--src/rtext.c4
-rw-r--r--src/rtextures.c16
5 files changed, 16 insertions, 16 deletions
diff --git a/src/raudio.c b/src/raudio.c
index 31e21c6e..9d1683a1 100644
--- a/src/raudio.c
+++ b/src/raudio.c
@@ -237,7 +237,7 @@ typedef struct tagBITMAPINFOHEADER {
#define QOA_IMPLEMENTATION
#include "external/qoa.h" // QOA loading and saving functions
#include "external/qoaplay.c" // QOA stream playing helper functions
-
+
#if defined(_MSC_VER)
#pragma warning(pop) // Disable MSVC warning suppression
#endif
@@ -920,7 +920,7 @@ Sound LoadSoundFromWave(Wave wave)
}
// Clone sound from existing sound data, clone does not own wave data
-// Wave data must
+// Wave data must
// NOTE: Wave data must be unallocated manually and will be shared across all clones
Sound LoadSoundAlias(Sound source)
{
diff --git a/src/raymath.h b/src/raymath.h
index 9281691f..86d2c8eb 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -315,11 +315,11 @@ RMAPI float Vector2DistanceSqr(Vector2 v1, Vector2 v2)
RMAPI float Vector2Angle(Vector2 v1, Vector2 v2)
{
float result = 0.0f;
-
+
float dot = v1.x*v2.x + v1.y*v2.y;
float det = v1.x*v2.y - v1.y*v2.x;
result = -atan2f(det, dot);
-
+
return result;
}
@@ -329,7 +329,7 @@ RMAPI float Vector2Angle(Vector2 v1, Vector2 v2)
RMAPI float Vector2LineAngle(Vector2 start, Vector2 end)
{
float result = 0.0f;
-
+
result = atan2f(end.y - start.y, end.x - start.x);
return result;
diff --git a/src/rcore.c b/src/rcore.c
index c2883498..7d8811b0 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -4434,7 +4434,7 @@ static bool InitGraphicsDevice(int width, int height)
#if defined(PLATFORM_WEB)
emscripten_set_window_title((CORE.Window.title != 0)? CORE.Window.title : " ");
#endif
-
+
// Set window callback events
glfwSetWindowSizeCallback(CORE.Window.handle, WindowSizeCallback); // NOTE: Resizing not allowed by default!
#if !defined(PLATFORM_WEB)
diff --git a/src/rtext.c b/src/rtext.c
index f5234ecf..a66c5810 100644
--- a/src/rtext.c
+++ b/src/rtext.c
@@ -852,7 +852,7 @@ Image GenImageFontAtlas(const GlyphInfo *chars, Rectangle **charRecs, int glyphC
RL_FREE(nodes);
RL_FREE(context);
}
-
+
#if defined(SUPPORT_FONT_ATLAS_WHITE_REC)
// Add a 3x3 white rectangle at the bottom-right corner of the generated atlas,
// useful to use as the white texture to draw shapes with raylib, using this rectangle
@@ -865,7 +865,7 @@ Image GenImageFontAtlas(const GlyphInfo *chars, Rectangle **charRecs, int glyphC
k -= atlas.width;
}
#endif
-
+
// Convert image data from GRAYSCALE to GRAY_ALPHA
unsigned char *dataGrayAlpha = (unsigned char *)RL_MALLOC(atlas.width*atlas.height*sizeof(unsigned char)*2); // Two channels
diff --git a/src/rtextures.c b/src/rtextures.c
index f6e7e49c..4b697f77 100644
--- a/src/rtextures.c
+++ b/src/rtextures.c
@@ -184,7 +184,7 @@
#pragma warning(push)
#pragma warning(disable : 4267)
#endif
-
+
#define QOI_IMPLEMENTATION
#include "external/qoi.h"
@@ -3300,13 +3300,13 @@ void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color)
{
memcpy(pSrcPixel + x*bytesPerPixel, pSrcPixel, bytesPerPixel);
}
-
- // Repeat the first row data for all other rows
- int bytesPerRow = bytesPerPixel * (int)rec.width;
- for (int y = 1; y < (int)rec.height; y++)
- {
- memcpy(pSrcPixel + (y*dst->width)*bytesPerPixel, pSrcPixel, bytesPerRow);
- }
+
+ // Repeat the first row data for all other rows
+ int bytesPerRow = bytesPerPixel * (int)rec.width;
+ for (int y = 1; y < (int)rec.height; y++)
+ {
+ memcpy(pSrcPixel + (y*dst->width)*bytesPerPixel, pSrcPixel, bytesPerRow);
+ }
}
// Draw rectangle lines within an image