fixed issue with bresenham high detection
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user