summaryrefslogtreecommitdiffhomepage
path: root/examples/models/models_draw_cube_texture.c
diff options
context:
space:
mode:
authorJeffery Myers <[email protected]>2024-06-24 08:47:32 -0700
committerGitHub <[email protected]>2024-06-24 17:47:32 +0200
commite96bab7ce63568d86fae4fd664fa06625f76f1ee (patch)
treed1fa5e419ac6846e64101afb39667ab10942c4bf /examples/models/models_draw_cube_texture.c
parent4311db5ba5eb23c8f1d71268010afb135f3e1e25 (diff)
downloadraylib-e96bab7ce63568d86fae4fd664fa06625f76f1ee.tar.gz
raylib-e96bab7ce63568d86fae4fd664fa06625f76f1ee.zip
[Build] Fix warnings when building in VS 2022 (#4095)
* Update raylib_api.* by CI * Fix warnings when building examples in MSVC 2022 * fix auto-format that sneaked in there. --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'examples/models/models_draw_cube_texture.c')
-rw-r--r--examples/models/models_draw_cube_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/models/models_draw_cube_texture.c b/examples/models/models_draw_cube_texture.c
index edcd4b7f..87d83c8f 100644
--- a/examples/models/models_draw_cube_texture.c
+++ b/examples/models/models_draw_cube_texture.c
@@ -67,7 +67,7 @@ int main(void)
DrawCubeTexture(texture, (Vector3){ -2.0f, 2.0f, 0.0f }, 2.0f, 4.0f, 2.0f, WHITE);
// Draw cube with an applied texture, but only a defined rectangle piece of the texture
- DrawCubeTextureRec(texture, (Rectangle){ 0, texture.height/2, texture.width/2, texture.height/2 },
+ DrawCubeTextureRec(texture, (Rectangle){ 0.0f, texture.height/2.0f, texture.width/2.0f, texture.height/2.0f },
(Vector3){ 2.0f, 1.0f, 0.0f }, 2.0f, 2.0f, 2.0f, WHITE);
DrawGrid(10, 1.0f); // Draw a grid