diff --git a/examples/renderer/08-rotating-textures/rotating-textures.c b/examples/renderer/08-rotating-textures/rotating-textures.c index 91d68c8870..b712112410 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! */