fixed issue with bresenham high detection

This commit is contained in:
2026-07-06 12:23:06 -07:00
parent 1d27f6e5d1
commit 95e9e92b40
7 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ namespace UwU {
}
return;
}
if (abs(y1 - y0) <= x1) {
if (abs(y1 - y0) <= abs(x1 - x0)) {
bresenhamLow(x0, y0, x1, y1, LUT);
} else {
if (y0 > y1) {
@@ -91,4 +91,4 @@ namespace UwU {
return;
}
};
}
}