diff options
| author | Alexander Buhl <[email protected]> | 2021-07-23 23:17:04 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-23 23:17:04 +0200 |
| commit | ff2b8d6db19b4de0b3acaefdf2b50d63dbc029f9 (patch) | |
| tree | 707315bf63432ddb36fcb6dfa46a74c7e4a4dcbc /src/raylib.dll.rc.data | |
| parent | 0fa295c72ddaff928dc883bb29b785d8be063154 (diff) | |
| download | raylib-ff2b8d6db19b4de0b3acaefdf2b50d63dbc029f9.tar.gz raylib-ff2b8d6db19b4de0b3acaefdf2b50d63dbc029f9.zip | |
Fixes #1873 Implemented remaining 7/8 of ImageDrawLine (#1874)
* Implemented remaining 7/8 of ImageDrawLine
The existing code was correct for one octant, it now works for all 8
Added two internal functions, _ImageDrawLineHorizontal and _ImageDrawLineVertical, whithout which it would've been 4 times as much code.
* ImageDrawLine: Replaced 3 functions with 1
Removed both freshly added internal functions
Crammed it all into one
* ImageDrawLine shortened significantly using maths
Substituted X and Y, then wrote one abstract loop instead of 4 specific loops.
Lots of comments to explain what I'm doing for future maintainers.
* Now conforms with style conventions
Also reworded a comment to sound more... fomal.
Diffstat (limited to 'src/raylib.dll.rc.data')
0 files changed, 0 insertions, 0 deletions
