summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2022-09-05 18:45:33 +0200
committerRay <[email protected]>2022-09-05 18:45:33 +0200
commitb09725fa84f2dfc2c766cdcf4e9bc8aff097048d (patch)
tree38c66d66cb5338206b36fbcb4eb6b0a67f401b89
parente59442bfabfb33de3cdee0907ce34ea3b3b92819 (diff)
downloadraylib-b09725fa84f2dfc2c766cdcf4e9bc8aff097048d.tar.gz
raylib-b09725fa84f2dfc2c766cdcf4e9bc8aff097048d.zip
REPLACED: `rlVertex2i()` by `rlVertex2f()`
-rw-r--r--src/rshapes.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/rshapes.c b/src/rshapes.c
index d6e4da22..12ed247f 100644
--- a/src/rshapes.c
+++ b/src/rshapes.c
@@ -106,8 +106,8 @@ void DrawPixel(int posX, int posY, Color color)
{
rlBegin(RL_LINES);
rlColor4ub(color.r, color.g, color.b, color.a);
- rlVertex2i(posX, posY);
- rlVertex2i(posX + 1, posY + 1);
+ rlVertex2f(posX, posY);
+ rlVertex2f(posX + 1, posY + 1);
rlEnd();
}
@@ -126,8 +126,8 @@ void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color colo
{
rlBegin(RL_LINES);
rlColor4ub(color.r, color.g, color.b, color.a);
- rlVertex2i(startPosX, startPosY);
- rlVertex2i(endPosX, endPosY);
+ rlVertex2f(startPosX, startPosY);
+ rlVertex2f(endPosX, endPosY);
rlEnd();
}
@@ -786,17 +786,17 @@ void DrawRectangleLines(int posX, int posY, int width, int height, Color color)
#else
rlBegin(RL_LINES);
rlColor4ub(color.r, color.g, color.b, color.a);
- rlVertex2i(posX + 1, posY + 1);
- rlVertex2i(posX + width, posY + 1);
+ rlVertex2f(posX + 1, posY + 1);
+ rlVertex2f(posX + width, posY + 1);
- rlVertex2i(posX + width, posY + 1);
- rlVertex2i(posX + width, posY + height);
+ rlVertex2f(posX + width, posY + 1);
+ rlVertex2f(posX + width, posY + height);
- rlVertex2i(posX + width, posY + height);
- rlVertex2i(posX + 1, posY + height);
+ rlVertex2f(posX + width, posY + height);
+ rlVertex2f(posX + 1, posY + height);
- rlVertex2i(posX + 1, posY + height);
- rlVertex2i(posX + 1, posY + 1);
+ rlVertex2f(posX + 1, posY + height);
+ rlVertex2f(posX + 1, posY + 1);
rlEnd();
#endif
}