diff options
| author | Ray <[email protected]> | 2024-05-01 18:12:57 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2024-05-01 18:12:57 +0200 |
| commit | 763129e96b0ae8a795f62d40d1b75736e4e6ae46 (patch) | |
| tree | cdc837d00c8f660b720b1bf64a49f6c4e4f363c1 /src/rshapes.c | |
| parent | 27a015d022ecdf771ea64b23f495a3b66101e170 (diff) | |
| download | raylib-763129e96b0ae8a795f62d40d1b75736e4e6ae46.tar.gz raylib-763129e96b0ae8a795f62d40d1b75736e4e6ae46.zip | |
Reviewed some warnings
Diffstat (limited to 'src/rshapes.c')
| -rw-r--r-- | src/rshapes.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rshapes.c b/src/rshapes.c index f13f4b01..80df64e2 100644 --- a/src/rshapes.c +++ b/src/rshapes.c @@ -815,17 +815,17 @@ void DrawRectangleLines(int posX, int posY, int width, int height, Color color) { rlBegin(RL_LINES); rlColor4ub(color.r, color.g, color.b, color.a); - rlVertex2f(posX, posY); - rlVertex2f(posX + width, posY + 1); + rlVertex2f((float)posX, (float)posY); + rlVertex2f((float)posX + (float)width, (float)posY + 1); - rlVertex2f(posX + width, posY + 1); - rlVertex2f(posX + width, posY + height); + rlVertex2f((float)posX + (float)width, (float)posY + 1); + rlVertex2f((float)posX + (float)width, (float)posY + (float)height); - rlVertex2f(posX + width, posY + height); - rlVertex2f(posX + 1, posY + height); + rlVertex2f((float)posX + (float)width, (float)posY + (float)height); + rlVertex2f((float)posX + 1, (float)posY + (float)height); - rlVertex2f(posX + 1, posY + height); - rlVertex2f(posX + 1, posY + 1); + rlVertex2f((float)posX + 1, (float)posY + (float)height); + rlVertex2f((float)posX + 1, (float)posY + 1); rlEnd(); } |
