summaryrefslogtreecommitdiffhomepage
path: root/examples/textures
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/textures
parent086f76ba7abefb1b34e1baa353c5f69dfc5dafdc (diff)
downloadraylib-daeccd03ace3eacf7907ecca1a697c7d00961cf4.tar.gz
raylib-daeccd03ace3eacf7907ecca1a697c7d00961cf4.zip
Fix VC warnings for examples (#2085)
Diffstat (limited to 'examples/textures')
-rw-r--r--examples/textures/textures_sprite_explosion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/textures/textures_sprite_explosion.c b/examples/textures/textures_sprite_explosion.c
index 4cb76906..10268aa8 100644
--- a/examples/textures/textures_sprite_explosion.c
+++ b/examples/textures/textures_sprite_explosion.c
@@ -32,8 +32,8 @@ int main(void)
Texture2D explosion = LoadTexture("resources/explosion.png");
// Init variables for animation
- float frameWidth = explosion.width/NUM_FRAMES_PER_LINE; // Sprite one frame rectangle width
- float frameHeight = explosion.height/NUM_LINES; // Sprite one frame rectangle height
+ float frameWidth = (float)(explosion.width/NUM_FRAMES_PER_LINE); // Sprite one frame rectangle width
+ float frameHeight = (float)(explosion.height/NUM_LINES); // Sprite one frame rectangle height
int currentFrame = 0;
int currentLine = 0;