explaining comment

This commit is contained in:
opfez 2021-11-23 16:23:03 +01:00
parent 438ac43ff5
commit cdc427a54b
1 changed files with 2 additions and 0 deletions

2
main.c
View File

@ -339,6 +339,8 @@ draw_horizontal_line(
if (dx < 1) return;
for (int32_t x = x0; x <= x1; x++) {
/* doing bresenham in the z-axis to find the points where we
* should/shouldn't draw */
eps += dz;
while (eps > 0) {
eps -= dx;