aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2019-02-28 23:06:37 +0100
committerRay <raysan5@gmail.com>2019-02-28 23:06:37 +0100
commit36fa0207f29a4f3e2ed1a8e4d541bcd14e09ff2b (patch)
treeecf58f4a3149e429dc8b6f9c02070453d49977e9 /src
parent50da9f623e1c2c70530653399a9acf1092e30a1d (diff)
downloadraylib-36fa0207f29a4f3e2ed1a8e4d541bcd14e09ff2b.tar.gz
raylib-36fa0207f29a4f3e2ed1a8e4d541bcd14e09ff2b.zip
Some spacing review
Diffstat (limited to 'src')
-rw-r--r--src/core.c2
-rw-r--r--src/rlgl.h6
-rw-r--r--src/shapes.c2
-rw-r--r--src/text.c2
4 files changed, 5 insertions, 7 deletions
diff --git a/src/core.c b/src/core.c
index dc60eee4..4e195ec7 100644
--- a/src/core.c
+++ b/src/core.c
@@ -4321,7 +4321,7 @@ static void *EventThread(void *arg)
// Button parsing
if (event.type == EV_KEY)
{
- if((event.code == BTN_TOUCH) || (event.code == BTN_LEFT))
+ if ((event.code == BTN_TOUCH) || (event.code == BTN_LEFT))
{
currentMouseStateEvdev[MOUSE_LEFT_BUTTON] = event.value;
if (event.value > 0) gestureEvent.touchAction = TOUCH_DOWN;
diff --git a/src/rlgl.h b/src/rlgl.h
index a8987839..b8895a08 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -1624,7 +1624,7 @@ void rlglInit(int width, int height)
if (strcmp(extList[i], (const char *)"GL_EXT_texture_mirror_clamp") == 0) texMirrorClampSupported = true;
// Debug marker support
- if(strcmp(extList[i], (const char *)"GL_EXT_debug_marker") == 0) debugMarkerSupported = true;
+ if (strcmp(extList[i], (const char *)"GL_EXT_debug_marker") == 0) debugMarkerSupported = true;
}
#if defined(_WIN32) && defined(_MSC_VER)
@@ -1804,7 +1804,7 @@ void rlLoadExtensions(void *loader)
#if defined(GRAPHICS_API_OPENGL_21)
if (GLAD_GL_VERSION_2_1) TraceLog(LOG_INFO, "OpenGL 2.1 profile supported");
#elif defined(GRAPHICS_API_OPENGL_33)
- if(GLAD_GL_VERSION_3_3) TraceLog(LOG_INFO, "OpenGL 3.3 Core profile supported");
+ if (GLAD_GL_VERSION_3_3) TraceLog(LOG_INFO, "OpenGL 3.3 Core profile supported");
else TraceLog(LOG_ERROR, "OpenGL 3.3 Core profile not supported");
#endif
#endif
@@ -4095,7 +4095,7 @@ static void UpdateBuffersDefault(void)
// Another option: map the buffer object into client's memory
// Probably this code could be moved somewhere else...
// vertexData[currentBuffer].vertices = (float *)glMapBuffer(GL_ARRAY_BUFFER, GL_READ_WRITE);
- // if(vertexData[currentBuffer].vertices)
+ // if (vertexData[currentBuffer].vertices)
// {
// Update vertex data
// }
diff --git a/src/shapes.c b/src/shapes.c
index 837e4e9c..fd28f3a3 100644
--- a/src/shapes.c
+++ b/src/shapes.c
@@ -400,7 +400,7 @@ void DrawRectangleLinesEx(Rectangle rec, int lineThick, Color color)
{
if (lineThick > rec.width || lineThick > rec.height)
{
- if(rec.width > rec.height) lineThick = (int)rec.height/2;
+ if (rec.width > rec.height) lineThick = (int)rec.height/2;
else if (rec.width < rec.height) lineThick = (int)rec.width/2;
}
diff --git a/src/text.c b/src/text.c
index f228a4df..d44cdd11 100644
--- a/src/text.c
+++ b/src/text.c
@@ -1326,13 +1326,11 @@ int TextToInteger(const char *text)
return result;
}
-
//----------------------------------------------------------------------------------
//----------------------------------------------------------------------------------
// Module specific Functions Definition
//----------------------------------------------------------------------------------
-
#if defined(SUPPORT_FILEFORMAT_FNT)
// Load a BMFont file (AngelCode font file)
static Font LoadBMFont(const char *fileName)