Skip to content

Commit

Permalink
examples/renderer/03-lines: Fix compiler warning on Visual Studio.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 19, 2024
1 parent 2e3e5ab commit b4e2777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/renderer/03-lines/renderer-lines.c
Original file line number Diff line number Diff line change
Expand Up @@ -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! */
Expand Down

0 comments on commit b4e2777

Please sign in to comment.