Remove trailing spaces
This commit is contained in:
parent
f88604e6d5
commit
de7beef05d
5 changed files with 9 additions and 9 deletions
|
@ -755,7 +755,7 @@ int GetCurrentMonitor(void)
|
||||||
// to try to detect the "current monitor" for that window, note that
|
// to try to detect the "current monitor" for that window, note that
|
||||||
// this is probably an overengineered solution for a very side case
|
// this is probably an overengineered solution for a very side case
|
||||||
// trying to match SDL behaviour
|
// trying to match SDL behaviour
|
||||||
|
|
||||||
int closestDist = 0x7FFFFFFF;
|
int closestDist = 0x7FFFFFFF;
|
||||||
|
|
||||||
// Window center position
|
// Window center position
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
* Custom flag for rcore on target platform -not used-
|
* Custom flag for rcore on target platform -not used-
|
||||||
*
|
*
|
||||||
* DEPENDENCIES:
|
* DEPENDENCIES:
|
||||||
* - <platform-specific SDK dependency>
|
* - <platform-specific SDK dependency>
|
||||||
* - gestures: Gestures system for touch-ready devices (or simulated from mouse inputs)
|
* - gestures: Gestures system for touch-ready devices (or simulated from mouse inputs)
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
|
|
@ -1681,17 +1681,17 @@ void SetRandomSeed(unsigned int seed)
|
||||||
int GetRandomValue(int min, int max)
|
int GetRandomValue(int min, int max)
|
||||||
{
|
{
|
||||||
int value = 0;
|
int value = 0;
|
||||||
|
|
||||||
if (min > max)
|
if (min > max)
|
||||||
{
|
{
|
||||||
int tmp = max;
|
int tmp = max;
|
||||||
max = min;
|
max = min;
|
||||||
min = tmp;
|
min = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(SUPPORT_RPRAND_GENERATOR)
|
#if defined(SUPPORT_RPRAND_GENERATOR)
|
||||||
value = rprand_get_value(min, max);
|
value = rprand_get_value(min, max);
|
||||||
#else
|
#else
|
||||||
// WARNING: Ranges higher than RAND_MAX will return invalid results
|
// WARNING: Ranges higher than RAND_MAX will return invalid results
|
||||||
// More specifically, if (max - min) > INT_MAX there will be an overflow,
|
// 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
|
// 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);
|
TRACELOG(LOG_WARNING, "Invalid GetRandomValue() arguments, range should not be higher than %i", RAND_MAX);
|
||||||
}
|
}
|
||||||
|
|
||||||
value = (rand()%(abs(max - min) + 1) + min);
|
value = (rand()%(abs(max - min) + 1) + min);
|
||||||
#endif
|
#endif
|
||||||
return value;
|
return value;
|
||||||
|
|
|
@ -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 rlScissor(int x, int y, int width, int height); // Scissor test
|
||||||
RLAPI void rlEnableWireMode(void); // Enable wire mode
|
RLAPI void rlEnableWireMode(void); // Enable wire mode
|
||||||
RLAPI void rlEnablePointMode(void); // Enable point 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 void rlSetLineWidth(float width); // Set the line drawing width
|
||||||
RLAPI float rlGetLineWidth(void); // Get the line drawing width
|
RLAPI float rlGetLineWidth(void); // Get the line drawing width
|
||||||
RLAPI void rlEnableSmoothLines(void); // Enable line aliasing
|
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)
|
#if defined(GRAPHICS_API_OPENGL_11) || defined(GRAPHICS_API_OPENGL_33)
|
||||||
// NOTE: glPolygonMode() not available on OpenGL ES
|
// NOTE: glPolygonMode() not available on OpenGL ES
|
||||||
glPolygonMode(GL_FRONT_AND_BACK, GL_POINT);
|
glPolygonMode(GL_FRONT_AND_BACK, GL_POINT);
|
||||||
glEnable(GL_PROGRAM_POINT_SIZE);
|
glEnable(GL_PROGRAM_POINT_SIZE);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
// Disable wire mode
|
// Disable wire mode
|
||||||
|
|
|
@ -1160,7 +1160,7 @@ BoundingBox GetModelBoundingBox(Model model)
|
||||||
bounds.max = temp;
|
bounds.max = temp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply model.transform to bounding box
|
// Apply model.transform to bounding box
|
||||||
// WARNING: Current BoundingBox structure design does not support rotation transformations,
|
// 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)
|
// in those cases is up to the user to calculate the proper box bounds (8 vertices transformed)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue