summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2023-10-31 15:54:52 +0100
committerRay <[email protected]>2023-10-31 15:54:52 +0100
commitde7beef05d56a23c4ab06202013965e3da014ef3 (patch)
treec28ba654bd992085d912c180aa1c252051d3b387
parentf88604e6d5e0b17280b05081450a0e9b31d8621d (diff)
downloadraylib-de7beef05d56a23c4ab06202013965e3da014ef3.tar.gz
raylib-de7beef05d56a23c4ab06202013965e3da014ef3.zip
Remove trailing spaces
-rw-r--r--src/platforms/rcore_desktop.c2
-rw-r--r--src/platforms/rcore_template.c2
-rw-r--r--src/rcore.c8
-rw-r--r--src/rlgl.h4
-rw-r--r--src/rmodels.c2
5 files changed, 9 insertions, 9 deletions
diff --git a/src/platforms/rcore_desktop.c b/src/platforms/rcore_desktop.c
index 267262c9..3d38dc89 100644
--- a/src/platforms/rcore_desktop.c
+++ b/src/platforms/rcore_desktop.c
@@ -755,7 +755,7 @@ int GetCurrentMonitor(void)
// to try to detect the "current monitor" for that window, note that
// this is probably an overengineered solution for a very side case
// trying to match SDL behaviour
-
+
int closestDist = 0x7FFFFFFF;
// Window center position
diff --git a/src/platforms/rcore_template.c b/src/platforms/rcore_template.c
index 9a815ec4..5d4721c8 100644
--- a/src/platforms/rcore_template.c
+++ b/src/platforms/rcore_template.c
@@ -21,7 +21,7 @@
* Custom flag for rcore on target platform -not used-
*
* DEPENDENCIES:
-* - <platform-specific SDK dependency>
+* - <platform-specific SDK dependency>
* - gestures: Gestures system for touch-ready devices (or simulated from mouse inputs)
*
*
diff --git a/src/rcore.c b/src/rcore.c
index 333fa4bf..175d6861 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -1681,17 +1681,17 @@ void SetRandomSeed(unsigned int seed)
int GetRandomValue(int min, int max)
{
int value = 0;
-
+
if (min > max)
{
int tmp = max;
max = min;
min = tmp;
}
-
+
#if defined(SUPPORT_RPRAND_GENERATOR)
value = rprand_get_value(min, max);
-#else
+#else
// WARNING: Ranges higher than RAND_MAX will return invalid results
// More specifically, if (max - min) > INT_MAX there will be an overflow,
// and otherwise if (max - min) > RAND_MAX the random value will incorrectly never exceed a certain threshold
@@ -1699,7 +1699,7 @@ int GetRandomValue(int min, int max)
{
TRACELOG(LOG_WARNING, "Invalid GetRandomValue() arguments, range should not be higher than %i", RAND_MAX);
}
-
+
value = (rand()%(abs(max - min) + 1) + min);
#endif
return value;
diff --git a/src/rlgl.h b/src/rlgl.h
index 707555dd..fcb8feeb 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -633,7 +633,7 @@ RLAPI void rlDisableScissorTest(void); // Disable scissor test
RLAPI void rlScissor(int x, int y, int width, int height); // Scissor test
RLAPI void rlEnableWireMode(void); // Enable wire mode
RLAPI void rlEnablePointMode(void); // Enable point mode
-RLAPI void rlDisableWireMode(void); // Disable wire mode ( and point ) maybe rename
+RLAPI void rlDisableWireMode(void); // Disable wire mode ( and point ) maybe rename
RLAPI void rlSetLineWidth(float width); // Set the line drawing width
RLAPI float rlGetLineWidth(void); // Get the line drawing width
RLAPI void rlEnableSmoothLines(void); // Enable line aliasing
@@ -1823,7 +1823,7 @@ void rlEnablePointMode(void)
#if defined(GRAPHICS_API_OPENGL_11) || defined(GRAPHICS_API_OPENGL_33)
// NOTE: glPolygonMode() not available on OpenGL ES
glPolygonMode(GL_FRONT_AND_BACK, GL_POINT);
- glEnable(GL_PROGRAM_POINT_SIZE);
+ glEnable(GL_PROGRAM_POINT_SIZE);
#endif
}
// Disable wire mode
diff --git a/src/rmodels.c b/src/rmodels.c
index b0120932..68c2d75b 100644
--- a/src/rmodels.c
+++ b/src/rmodels.c
@@ -1160,7 +1160,7 @@ BoundingBox GetModelBoundingBox(Model model)
bounds.max = temp;
}
}
-
+
// Apply model.transform to bounding box
// WARNING: Current BoundingBox structure design does not support rotation transformations,
// in those cases is up to the user to calculate the proper box bounds (8 vertices transformed)