diff options
| author | Jeffery Myers <[email protected]> | 2021-04-25 09:50:26 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-25 18:50:26 +0200 |
| commit | 6c518008a58853197890b45e941f342e4195de60 (patch) | |
| tree | 429e12c1ee0c6206c69c7a93c7726aa3ab3d533b /examples/textures/textures_sprite_explosion.c | |
| parent | 87198586554e218834542098ec40e6611452c3aa (diff) | |
| download | raylib-6c518008a58853197890b45e941f342e4195de60.tar.gz raylib-6c518008a58853197890b45e941f342e4195de60.zip | |
Fixes for 64 bit typecast warnings (#1733)
Diffstat (limited to 'examples/textures/textures_sprite_explosion.c')
| -rw-r--r-- | examples/textures/textures_sprite_explosion.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/textures/textures_sprite_explosion.c b/examples/textures/textures_sprite_explosion.c index 900ec966..2394f6a8 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 - int frameWidth = explosion.width/NUM_FRAMES_PER_LINE; // Sprite one frame rectangle width - int frameHeight = explosion.height/NUM_LINES; // Sprite one frame rectangle height + float frameWidth = explosion.width/NUM_FRAMES_PER_LINE; // Sprite one frame rectangle width + float frameHeight = explosion.height/NUM_LINES; // Sprite one frame rectangle height int currentFrame = 0; int currentLine = 0; @@ -89,8 +89,8 @@ int main(void) } } - frameRec.x = (float)frameWidth*currentFrame; - frameRec.y = (float)frameHeight*currentLine; + frameRec.x = frameWidth*currentFrame; + frameRec.y = frameHeight*currentLine; //---------------------------------------------------------------------------------- // Draw |
