summaryrefslogtreecommitdiff
path: root/src/ui/paint.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-25 07:27:29 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-25 07:27:29 +0200
commit1c29e992b9c7d17a4e0ca2c394fdf605706c961f (patch)
treeb18a3aa23b54aa4ba4dade24d1ae2b15ec0e1185 /src/ui/paint.c
parente6a1ff50654f251d6f7b495e46d78d48a0f2a754 (diff)
Cleanup
Warnings about lost precision.
Diffstat (limited to 'src/ui/paint.c')
-rw-r--r--src/ui/paint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/paint.c b/src/ui/paint.c
index c3b22343..5e66f521 100644
--- a/src/ui/paint.c
+++ b/src/ui/paint.c
@@ -175,7 +175,7 @@ void drawLines_Paint(const iPaint *d, const iInt2 *points, size_t n, int color)
175 for (size_t i = 0; i < n; i++) { 175 for (size_t i = 0; i < n; i++) {
176 offsetPoints[i] = add_I2(points[i], origin_Paint); 176 offsetPoints[i] = add_I2(points[i], origin_Paint);
177 } 177 }
178 SDL_RenderDrawLines(renderer_Paint_(d), (const SDL_Point *) offsetPoints, n); 178 SDL_RenderDrawLines(renderer_Paint_(d), (const SDL_Point *) offsetPoints, (int) n);
179 free(offsetPoints); 179 free(offsetPoints);
180} 180}
181 181