summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2020-10-05 20:04:33 +0200
committerRay <[email protected]>2020-10-05 20:04:33 +0200
commita4ea9f872ffef9ffe66fade37e984c3cc97910cb (patch)
treeb20ce1514e05c6685dd9d7e6859e3bdbcd5832e9 /src
parenta8685ee4fd6eaba79fa53f4adf261d672947a000 (diff)
downloadraylib-a4ea9f872ffef9ffe66fade37e984c3cc97910cb.tar.gz
raylib-a4ea9f872ffef9ffe66fade37e984c3cc97910cb.zip
Review "aggregate initializations" #1403
Diffstat (limited to 'src')
-rw-r--r--src/physac.h4
-rw-r--r--src/raymath.h2
-rw-r--r--src/textures.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/physac.h b/src/physac.h
index d9b534b5..f03074dd 100644
--- a/src/physac.h
+++ b/src/physac.h
@@ -407,8 +407,8 @@ PHYSACDEF PhysicsBody CreatePhysicsBodyRectangle(Vector2 pos, float width, float
newBody->id = newId;
newBody->enabled = true;
newBody->position = pos;
- newBody->velocity = (Vector2){ 0.0f };
- newBody->force = (Vector2){ 0.0f };
+ newBody->velocity = (Vector2){ 0.0f, 0.0f };
+ newBody->force = (Vector2){ 0.0f, 0.0f };
newBody->angularVelocity = 0.0f;
newBody->torque = 0.0f;
newBody->orient = 0.0f;
diff --git a/src/raymath.h b/src/raymath.h
index 06ab1320..68f1dd9e 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -1328,7 +1328,7 @@ RMDEF Quaternion QuaternionFromVector3ToVector3(Vector3 from, Vector3 to)
// Returns a quaternion for a given rotation matrix
RMDEF Quaternion QuaternionFromMatrix(Matrix mat)
{
- Quaternion result = { 0.0f };
+ Quaternion result = { 0 };
if ((mat.m0 > mat.m5) && (mat.m0 > mat.m10))
{
diff --git a/src/textures.c b/src/textures.c
index a555aeb4..0854aa9e 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -3565,7 +3565,7 @@ Color ColorAlphaBlend(Color dst, Color src, Color tint)
Vector4 fdst = ColorNormalize(dst);
Vector4 fsrc = ColorNormalize(src);
Vector4 ftint = ColorNormalize(tint);
- Vector4 fout = { 0.0f };
+ Vector4 fout = { 0 };
fout.w = fsrc.w + fdst.w*(1.0f - fsrc.w);