4 Commits

Author SHA1 Message Date
Ray
a2cc9b1614 Merge branch 'master' of https://github.com/raysan5/raylib 2026-09-05 21:22:21 +02:00
30f918cc15 [rlparser] Fix formatting to follow raylib conventions (#6127)
Moved curly brace to newline in `if` block.
2026-09-05 21:21:54 +02:00
Ray
f3d143019b Merge branch 'master' of https://github.com/raysan5/raylib 2026-09-05 18:53:52 +02:00
Ray
2237618acf Update rshapes.c 2026-09-05 18:53:39 +02:00
2 changed files with 4 additions and 3 deletions

View File

@ -3021,7 +3021,7 @@ void DrawRingLinesEx(Vector2 center, float innerRadius, float outerRadius, float
float tOuter = (cap1O1.y - thick)/cap1O1.y;
Vector2 cap1O2 = { cap1O1.x + (cap1O0.x - cap1O1.x)*tOuter, thick };
Vector2 cap1I0 = { innerInnerRadius, 0.0f };
//Vector2 cap1I0 = { innerInnerRadius, 0.0f }; // Not used
float capLongEdgeLength = outerOuterRadius - innerInnerRadius;
Vector2 cap1I2 = { cap1O2.x - capLongEdgeLength, thick };
@ -3081,7 +3081,7 @@ void DrawRingLinesEx(Vector2 center, float innerRadius, float outerRadius, float
cap2O1 = (Vector2){ center.x + cosf(DEG2RAD*(endAngle - stepLength))*outerOuterRadius, center.y + sinf(DEG2RAD*(endAngle - stepLength))*outerOuterRadius };
cap2O2 = (Vector2){ cap2O1.x + (cap2O0.x - cap2O1.x)*tOuter, cap2O1.y + (cap2O0.y - cap2O1.y)*tOuter };
cap1I0 = (Vector2){ center.x + cosf(DEG2RAD*startAngle)*innerInnerRadius, center.y + sinf(DEG2RAD*startAngle)*innerInnerRadius };
//cap1I0 = (Vector2){ center.x + cosf(DEG2RAD*startAngle)*innerInnerRadius, center.y + sinf(DEG2RAD*startAngle)*innerInnerRadius };
cap1I2 = (Vector2){ cap1O2.x - cosf(DEG2RAD*startAngle)*capLongEdgeLength, cap1O2.y - sinf(DEG2RAD*startAngle)*capLongEdgeLength };
cap2I0 = (Vector2){ center.x + cosf(DEG2RAD*endAngle)*innerInnerRadius, center.y + sinf(DEG2RAD*endAngle)*innerInnerRadius };

View File

@ -783,7 +783,8 @@ int main(int argc, char *argv[])
c++;
// Maybe type pointer part
if (linePtr[c] == '*') {
if (linePtr[c] == '*')
{
while(linePtr[c] == '*') c++;
typeLen = c - typeStart;
}