diff options
| author | Ray <[email protected]> | 2021-05-14 14:01:42 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-05-14 14:01:42 +0200 |
| commit | 3baba7ffe84b184aa0dd555628a8a4eef92a9526 (patch) | |
| tree | 2c8f8a99efcfd52a1266a537e5a744bf17dc43dc /src/shapes.c | |
| parent | fff06d24da52c82f0f792088d97e7b0589eaeba2 (diff) | |
| download | raylib-3baba7ffe84b184aa0dd555628a8a4eef92a9526.tar.gz raylib-3baba7ffe84b184aa0dd555628a8a4eef92a9526.zip | |
Review some VS warnings and messages
Diffstat (limited to 'src/shapes.c')
| -rw-r--r-- | src/shapes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shapes.c b/src/shapes.c index 9f03bfb3..5ed7acbb 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -144,7 +144,7 @@ void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color) #endif Vector2 previous = startPos; - Vector2 current; + Vector2 current = { 0 }; for (int i = 1; i <= BEZIER_LINE_DIVISIONS; i++) { @@ -770,8 +770,8 @@ void DrawRectangleLinesEx(Rectangle rec, float lineThick, Color color) { if ((lineThick > rec.width) || (lineThick > rec.height)) { - if (rec.width > rec.height) lineThick = (int)rec.height/2; - else if (rec.width < rec.height) lineThick = (int)rec.width/2; + if (rec.width > rec.height) lineThick = rec.height/2; + else if (rec.width < rec.height) lineThick = rec.width/2; } // When rec = { x, y, 8.0f, 6.0f } and lineThick = 2, the following |
