Skip to content

Commit 87f758f

Browse files
committed
Review latest PRs formatting
1 parent f6c0709 commit 87f758f

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

src/platforms/rcore_android.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,8 @@ int GetMonitorCount(void)
447447
int GetCurrentMonitor(void)
448448
{
449449
int displayId = -1;
450-
JNIEnv* env = NULL;
451-
JavaVM* vm = platform.app->activity->vm;
450+
JNIEnv *env = NULL;
451+
JavaVM *vm = platform.app->activity->vm;
452452
(*vm)->AttachCurrentThread(vm, &env, NULL);
453453

454454
jobject activity = platform.app->activity->clazz;
@@ -458,12 +458,15 @@ int GetCurrentMonitor(void)
458458

459459
jobject display = (*env)->CallObjectMethod(env, activity, getDisplayMethod);
460460

461-
if (display == NULL) {
461+
if (display == NULL)
462+
{
462463
TRACELOG(LOG_ERROR, "GetCurrentMonitor() couldn't get the display object");
463-
} else {
464+
}
465+
else
466+
{
464467
jclass displayClass = (*env)->FindClass(env, "android/view/Display");
465468
jmethodID getDisplayIdMethod = (*env)->GetMethodID(env, displayClass, "getDisplayId", "()I");
466-
displayId = (int) (*env)->CallIntMethod(env, display, getDisplayIdMethod);
469+
displayId = (int)(*env)->CallIntMethod(env, display, getDisplayIdMethod);
467470
(*env)->DeleteLocalRef(env, displayClass);
468471
}
469472

src/rmodels.c

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6239,19 +6239,17 @@ static ModelAnimation *LoadModelAnimationsGLTF(const char *fileName, int *animCo
62396239
*animCount = (int)data->animations_count;
62406240
animations = (ModelAnimation *)RL_CALLOC(data->animations_count, sizeof(ModelAnimation));
62416241

6242-
Transform worldTransform;
6243-
{
6244-
cgltf_float cgltf_worldTransform[16];
6245-
cgltf_node* node = skin.joints[0];
6246-
cgltf_node_transform_world(node->parent, cgltf_worldTransform);
6247-
Matrix worldMatrix = {
6248-
cgltf_worldTransform[0], cgltf_worldTransform[4], cgltf_worldTransform[8], cgltf_worldTransform[12],
6249-
cgltf_worldTransform[1], cgltf_worldTransform[5], cgltf_worldTransform[9], cgltf_worldTransform[13],
6250-
cgltf_worldTransform[2], cgltf_worldTransform[6], cgltf_worldTransform[10], cgltf_worldTransform[14],
6251-
cgltf_worldTransform[3], cgltf_worldTransform[7], cgltf_worldTransform[11], cgltf_worldTransform[15]
6252-
};
6253-
MatrixDecompose(worldMatrix, &(worldTransform.translation), &(worldTransform.rotation), &(worldTransform.scale));
6254-
}
6242+
Transform worldTransform = { 0 };
6243+
cgltf_float cgltf_worldTransform[16] = { 0 };
6244+
cgltf_node *node = skin.joints[0];
6245+
cgltf_node_transform_world(node->parent, cgltf_worldTransform);
6246+
Matrix worldMatrix = {
6247+
cgltf_worldTransform[0], cgltf_worldTransform[4], cgltf_worldTransform[8], cgltf_worldTransform[12],
6248+
cgltf_worldTransform[1], cgltf_worldTransform[5], cgltf_worldTransform[9], cgltf_worldTransform[13],
6249+
cgltf_worldTransform[2], cgltf_worldTransform[6], cgltf_worldTransform[10], cgltf_worldTransform[14],
6250+
cgltf_worldTransform[3], cgltf_worldTransform[7], cgltf_worldTransform[11], cgltf_worldTransform[15]
6251+
};
6252+
MatrixDecompose(worldMatrix, &worldTransform.translation, &worldTransform.rotation, &worldTransform.scale);
62556253

62566254
for (unsigned int i = 0; i < data->animations_count; i++)
62576255
{

0 commit comments

Comments
 (0)