mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-04 20:37:49 +00:00
examples/renderer/08-rotating-textures: Fix compiler warning on MSVC .
This commit is contained in:
@@ -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! */
|
||||
|
||||
Reference in New Issue
Block a user