examples/renderer/03-lines: Fix compiler warning on Visual Studio.

This commit is contained in:
Ryan C. Gordon 2024-09-19 13:31:24 -04:00
parent 2e3e5abd7d
commit b4e2777820
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
const float x = 320.0f;
const float y = 95.0f - (size / 2.0f);
SDL_SetRenderDrawColor(renderer, SDL_rand(256), SDL_rand(256), SDL_rand(256), 255);
SDL_RenderLine(renderer, x, y, x + SDL_sinf(i) * size, y + SDL_cosf(i) * size);
SDL_RenderLine(renderer, x, y, x + SDL_sinf((float) i) * size, y + SDL_cosf((float) i) * size);
}
SDL_RenderPresent(renderer); /* put it all on the screen! */