Commit b7f50b2
authored
[rtextures] ImageDrawLine() rounding and length fix (#5896)
* Fixing ImageDrawLine to be more pixel accurate
Changes to ImageDrawLine() function.
. Added one pixel to the length of a line so it wont draw lines one pixel short.
. Changed rounding by adding 0.5 in 16 bit fixed point to 'j' in for-loop.
* Changed ImagDrawLine to be more acurate1 parent 2ee6a76 commit b7f50b2
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3506 | 3506 | | |
3507 | 3507 | | |
3508 | 3508 | | |
3509 | | - | |
| 3509 | + | |
3510 | 3510 | | |
3511 | 3511 | | |
3512 | 3512 | | |
3513 | 3513 | | |
3514 | 3514 | | |
3515 | 3515 | | |
3516 | 3516 | | |
| 3517 | + | |
3517 | 3518 | | |
3518 | 3519 | | |
3519 | 3520 | | |
| |||
3523 | 3524 | | |
3524 | 3525 | | |
3525 | 3526 | | |
3526 | | - | |
| 3527 | + | |
| 3528 | + | |
3527 | 3529 | | |
3528 | 3530 | | |
3529 | 3531 | | |
| |||
3532 | 3534 | | |
3533 | 3535 | | |
3534 | 3536 | | |
3535 | | - | |
| 3537 | + | |
3536 | 3538 | | |
3537 | 3539 | | |
3538 | 3540 | | |
| |||
0 commit comments