summaryrefslogtreecommitdiffhomepage
path: root/examples/shapes/shapes_bouncing_ball.c
diff options
context:
space:
mode:
authorJeffery Myers <[email protected]>2021-10-25 01:21:16 -0700
committerGitHub <[email protected]>2021-10-25 10:21:16 +0200
commitdaeccd03ace3eacf7907ecca1a697c7d00961cf4 (patch)
tree0be2045a1003eed50c1456fd1a380ff970837233 /examples/shapes/shapes_bouncing_ball.c
parent086f76ba7abefb1b34e1baa353c5f69dfc5dafdc (diff)
downloadraylib-daeccd03ace3eacf7907ecca1a697c7d00961cf4.tar.gz
raylib-daeccd03ace3eacf7907ecca1a697c7d00961cf4.zip
Fix VC warnings for examples (#2085)
Diffstat (limited to 'examples/shapes/shapes_bouncing_ball.c')
-rw-r--r--examples/shapes/shapes_bouncing_ball.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/shapes/shapes_bouncing_ball.c b/examples/shapes/shapes_bouncing_ball.c
index 9f01ff14..1f8ab8d9 100644
--- a/examples/shapes/shapes_bouncing_ball.c
+++ b/examples/shapes/shapes_bouncing_ball.c
@@ -20,7 +20,7 @@ int main(void)
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - bouncing ball");
- Vector2 ballPosition = { GetScreenWidth()/2, GetScreenHeight()/2 };
+ Vector2 ballPosition = { GetScreenWidth()/2.0f, GetScreenHeight()/2.0f };
Vector2 ballSpeed = { 5.0f, 4.0f };
int ballRadius = 20;
@@ -55,7 +55,7 @@ int main(void)
ClearBackground(RAYWHITE);
- DrawCircleV(ballPosition, ballRadius, MAROON);
+ DrawCircleV(ballPosition, (float)ballRadius, MAROON);
DrawText("PRESS SPACE to PAUSE BALL MOVEMENT", 10, GetScreenHeight() - 25, 20, LIGHTGRAY);
// On pause, we draw a blinking message