diff options
| author | Ray <[email protected]> | 2019-03-28 13:03:25 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2019-03-28 13:03:25 +0100 |
| commit | 165ced94286073a708d69119e8e8fde381710da2 (patch) | |
| tree | 39ecacd7c6a3577e554d3a501c3acac3aa7a9000 /src/shapes.c | |
| parent | 3a1e884d03d741a5bd9b9b57b204d27eff313583 (diff) | |
| download | raylib-165ced94286073a708d69119e8e8fde381710da2.tar.gz raylib-165ced94286073a708d69119e8e8fde381710da2.zip | |
Small tweak
Diffstat (limited to 'src/shapes.c')
| -rw-r--r-- | src/shapes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shapes.c b/src/shapes.c index fd28f3a3..af683f2e 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -214,7 +214,7 @@ void DrawCircleSector(Vector2 center, float radius, int startAngle, int endAngle rlDisableTexture(); #else - if (rlCheckBufferLimit(3*((360/CIRCLE_SECTOR_LENGTH)/2))) rlglDraw(); + if (rlCheckBufferLimit(3*360/CIRCLE_SECTOR_LENGTH)) rlglDraw(); rlBegin(RL_TRIANGLES); for (int i = startAngle; i < endAngle; i += CIRCLE_SECTOR_LENGTH) @@ -239,7 +239,7 @@ void DrawCircleGradient(int centerX, int centerY, float radius, Color color1, Co for (int i = 0; i < 360; i += 10) { rlColor4ub(color1.r, color1.g, color1.b, color1.a); - rlVertex2i(centerX, centerY); + rlVertex2f(centerX, centerY); rlColor4ub(color2.r, color2.g, color2.b, color2.a); rlVertex2f(centerX + sinf(DEG2RAD*i)*radius, centerY + cosf(DEG2RAD*i)*radius); rlColor4ub(color2.r, color2.g, color2.b, color2.a); |
