Skip to content

Commit be8eea9

Browse files
committed
Format tweaks
1 parent 97c2744 commit be8eea9

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

parser/raylib_parser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,11 +447,11 @@ int main(int argc, char* argv[])
447447
{
448448
if (isFloat)
449449
{
450-
defines[defineIndex].type = linePtr[j-1] == 'f' ? FLOAT : DOUBLE;
450+
defines[defineIndex].type = (linePtr[j-1] == 'f')? FLOAT : DOUBLE;
451451
}
452452
else
453453
{
454-
defines[defineIndex].type = linePtr[j-1] == 'L' ? LONG : INT;
454+
defines[defineIndex].type = (linePtr[j-1] == 'L')? LONG : INT;
455455
defines[defineIndex].isHex = isHex;
456456
}
457457
}

src/config.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@
5555
// Use busy wait loop for timing sync, if not defined, a high-resolution timer is set up and used
5656
//#define SUPPORT_BUSY_WAIT_LOOP 1
5757
// Use a partial-busy wait loop, in this case frame sleeps for most of the time, but then runs a busy loop at the end for accuracy
58-
#define SUPPORT_PARTIALBUSY_WAIT_LOOP
59-
// Wait for events passively (sleeping while no events) instead of polling them actively every frame
60-
//#define SUPPORT_EVENTS_WAITING 1
58+
#define SUPPORT_PARTIALBUSY_WAIT_LOOP 1
6159
// Allow automatic screen capture of current screen pressing F12, defined in KeyCallback()
6260
#define SUPPORT_SCREEN_CAPTURE 1
6361
// Allow automatic gif recording of current screen pressing CTRL+F12, defined in KeyCallback()

src/raylib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,8 +938,8 @@ extern "C" { // Prevents name mangling of functions
938938

939939
// Window-related functions
940940
RLAPI void InitWindow(int width, int height, const char *title); // Initialize window and OpenGL context
941-
RLAPI bool WindowShouldClose(void); // Check if KEY_ESCAPE pressed or Close icon pressed
942941
RLAPI void CloseWindow(void); // Close window and unload OpenGL context
942+
RLAPI bool WindowShouldClose(void); // Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)
943943
RLAPI bool IsWindowReady(void); // Check if window has been initialized successfully
944944
RLAPI bool IsWindowFullscreen(void); // Check if window is currently fullscreen
945945
RLAPI bool IsWindowHidden(void); // Check if window is currently hidden (only PLATFORM_DESKTOP)

src/rlgl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4248,7 +4248,7 @@ void rlBindImageTexture(unsigned int id, unsigned int index, int format, bool re
42484248
unsigned int glInternalFormat = 0, glFormat = 0, glType = 0;
42494249

42504250
rlGetGlTextureFormats(format, &glInternalFormat, &glFormat, &glType);
4251-
glBindImageTexture(index, id, 0, 0, 0, readonly ? GL_READ_ONLY : GL_READ_WRITE, glInternalFormat);
4251+
glBindImageTexture(index, id, 0, 0, 0, readonly? GL_READ_ONLY : GL_READ_WRITE, glInternalFormat);
42524252
#endif
42534253
}
42544254

src/rmodels.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ void UploadMesh(Mesh *mesh, bool dynamic)
12021202
// NOTE: Vertex attributes must be uploaded considering default locations points and available vertex data
12031203

12041204
// Enable vertex attributes: position (shader-location = 0)
1205-
void *vertices = mesh->animVertices != NULL ? mesh->animVertices : mesh->vertices;
1205+
void *vertices = (mesh->animVertices != NULL)? mesh->animVertices : mesh->vertices;
12061206
mesh->vboId[0] = rlLoadVertexBuffer(vertices, mesh->vertexCount*3*sizeof(float), dynamic);
12071207
rlSetVertexAttribute(0, 3, RL_FLOAT, 0, 0, 0);
12081208
rlEnableVertexAttribute(0);
@@ -1218,7 +1218,7 @@ void UploadMesh(Mesh *mesh, bool dynamic)
12181218
if (mesh->normals != NULL)
12191219
{
12201220
// Enable vertex attributes: normals (shader-location = 2)
1221-
void *normals = mesh->animNormals != NULL ? mesh->animNormals : mesh->normals;
1221+
void *normals = (mesh->animNormals != NULL)? mesh->animNormals : mesh->normals;
12221222
mesh->vboId[2] = rlLoadVertexBuffer(normals, mesh->vertexCount*3*sizeof(float), dynamic);
12231223
rlSetVertexAttribute(2, 3, RL_FLOAT, 0, 0, 0);
12241224
rlEnableVertexAttribute(2);
@@ -5585,7 +5585,7 @@ static Model LoadM3D(const char *fileName)
55855585

55865586
if (!m3d || M3D_ERR_ISFATAL(m3d->errcode))
55875587
{
5588-
TRACELOG(LOG_WARNING, "MODEL: [%s] Failed to load M3D data, error code %d", fileName, m3d ? m3d->errcode : -2);
5588+
TRACELOG(LOG_WARNING, "MODEL: [%s] Failed to load M3D data, error code %d", fileName, m3d? m3d->errcode : -2);
55895589
if (m3d) m3d_free(m3d);
55905590
UnloadFileData(fileData);
55915591
return model;
@@ -5910,7 +5910,7 @@ static ModelAnimation *LoadModelAnimationsM3D(const char *fileName, int *animCou
59105910

59115911
if (!m3d || M3D_ERR_ISFATAL(m3d->errcode))
59125912
{
5913-
TRACELOG(LOG_WARNING, "MODEL: [%s] Failed to load M3D data, error code %d", fileName, m3d ? m3d->errcode : -2);
5913+
TRACELOG(LOG_WARNING, "MODEL: [%s] Failed to load M3D data, error code %d", fileName, m3d? m3d->errcode : -2);
59145914
UnloadFileData(fileData);
59155915
return NULL;
59165916
}

0 commit comments

Comments
 (0)