Fix VC warnings for examples (#2085)

This commit is contained in:
Jeffery Myers
2021-10-25 01:21:16 -07:00
committed by GitHub
parent 086f76ba7a
commit daeccd03ac
21 changed files with 104 additions and 104 deletions

View File

@@ -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