examples/renderer/08-rotating-textures: Fix compiler warning on MSVC .

This commit is contained in:
Ozkan Sezer
2024-09-22 12:02:50 +03:00
parent 37d62deca1
commit b736285053

View File

@@ -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, &center, SDL_FLIP_NONE);
SDL_RenderPresent(renderer); /* put it all on the screen! */