diff options
Diffstat (limited to 'src/shapes.c')
| -rw-r--r-- | src/shapes.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shapes.c b/src/shapes.c index 2777cf6c..83eca0ef 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -619,7 +619,7 @@ void DrawRectangleRec(Rectangle rec, Color color) void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color) { if (rlCheckBufferLimit(4)) rlglDraw(); - + rlEnableTexture(GetShapesTexture().id); rlPushMatrix(); @@ -1178,13 +1178,15 @@ void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, int angle += stepLength; } } + // And now the remaining 4 lines - for(int i = 0; i < 8; i += 2) + for (int i = 0; i < 8; i += 2) { rlColor4ub(color.r, color.g, color.b, color.a); rlVertex2f(point[i].x, point[i].y); rlVertex2f(point[i + 1].x, point[i + 1].y); } + rlEnd(); } } |
