diff options
| author | Jeffery Myers <[email protected]> | 2021-03-22 23:51:52 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-23 07:51:52 +0100 |
| commit | e48b9a6da1d3dd6163b1596e47c58e7026530dc1 (patch) | |
| tree | 9d1bca87d19ae07f7605c112c53971531b109dc2 /examples/textures/textures_sprite_explosion.c | |
| parent | c6dd41495b2c0d96cf4d1ca108729ec87c9a0b53 (diff) | |
| download | raylib-e48b9a6da1d3dd6163b1596e47c58e7026530dc1.tar.gz raylib-e48b9a6da1d3dd6163b1596e47c58e7026530dc1.zip | |
[Examples] Warning fixes (pt 1) (#1668)
* Fix some warnings in examples.
* cleanups from review
Co-authored-by: Jeffery Myers <[email protected]>
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 53f2626e..52ac2606 100644 --- a/examples/textures/textures_sprite_explosion.c +++ b/examples/textures/textures_sprite_explosion.c @@ -58,8 +58,8 @@ int main(void) position = GetMousePosition(); active = true; - position.x -= frameWidth/2; - position.y -= frameHeight/2; + position.x -= frameWidth/2.0f; + position.y -= frameHeight/2.0f; PlaySound(fxBoom); } @@ -89,8 +89,8 @@ int main(void) } } - frameRec.x = frameWidth*currentFrame; - frameRec.y = frameHeight*currentLine; + frameRec.x = (float)frameWidth*currentFrame; + frameRec.y = (float)frameHeight*currentLine; //---------------------------------------------------------------------------------- // Draw |
