From b7362850534295f076c19f7f8bffa06e530d0968 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 22 Sep 2024 12:02:50 +0300
Subject: [PATCH] examples/renderer/08-rotating-textures: Fix compiler warning
on MSVC .
---
examples/renderer/08-rotating-textures/rotating-textures.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/renderer/08-rotating-textures/rotating-textures.c b/examples/renderer/08-rotating-textures/rotating-textures.c
index 91d68c8870c00..b7121124104b6 100644
--- a/examples/renderer/08-rotating-textures/rotating-textures.c
+++ b/examples/renderer/08-rotating-textures/rotating-textures.c
@@ -93,8 +93,8 @@ SDL_AppResult SDL_AppIterate(void *appstate)
dst_rect.w = (float) texture_width;
dst_rect.h = (float) texture_height;
/* rotate it around the center of the texture; you can rotate it from a different point, too! */
- center.x = texture_width / 2;
- center.y = texture_height / 2;
+ center.x = texture_width / 2.0f;
+ center.y = texture_height / 2.0f;
SDL_RenderTextureRotated(renderer, texture, NULL, &dst_rect, rotation, ¢er, SDL_FLIP_NONE);
SDL_RenderPresent(renderer); /* put it all on the screen! */