Skip to content

Commit 9f03d7c

Browse files
committed
fixing comments
1 parent 0c69c43 commit 9f03d7c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/rtextures.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3569,15 +3569,17 @@ void ImageDrawLineEx(Image *dst, Vector2 start, Vector2 end, int thick, Color co
35693569
if ((dx != 0) && (abs(dy/dx) < 1))
35703570
{
35713571
// Line is more horizontal
3572+
3573+
// How many additional lines to draw
35723574
int wy = thick - 1;
35733575

3574-
//Draw the main line and lower half
3576+
// Draw the main line and lower half
35753577
for (int i = 0; i <= ((wy+1)/2); i++)
35763578
{
35773579
ImageDrawLine(dst, x1, y1 + i, x2, y2 + i, color); // Draw below the main line
35783580
}
35793581

3580-
//Draw the upper half
3582+
// Draw the upper half
35813583
for (int i = 1; i <= (wy/2); i++)
35823584
{
35833585
ImageDrawLine(dst, x1, y1 - i, x2, y2 - i, color); // Draw above the main line
@@ -3586,6 +3588,8 @@ void ImageDrawLineEx(Image *dst, Vector2 start, Vector2 end, int thick, Color co
35863588
else if (dy != 0)
35873589
{
35883590
// Line is more vertical or perfectly horizontal
3591+
3592+
// How many additional lines to draw
35893593
int wx = thick - 1;
35903594

35913595
//Draw the main line and right half
@@ -3594,7 +3598,7 @@ void ImageDrawLineEx(Image *dst, Vector2 start, Vector2 end, int thick, Color co
35943598
ImageDrawLine(dst, x1 + i, y1, x2 + i, y2, color); // Draw right of the main line
35953599
}
35963600

3597-
//Draw the the left half
3601+
// Draw the left half
35983602
for (int i = 1; i <= (wx/2); i++)
35993603
{
36003604
ImageDrawLine(dst, x1 - i, y1, x2 - i, y2, color); // Draw left of the main line

0 commit comments

Comments
 (0)