This commit is contained in:
2024-10-11 02:54:35 -04:00
parent a663e45131
commit 0a45b81085
2 changed files with 15 additions and 6 deletions

View File

@@ -11,9 +11,6 @@ draw_line :: (screen: *Screen, p1: Vec2s64, p2: Vec2s64, char: u8 = DEFAULT_PIXE
p1_c := p1;
p2_c := p2;
// p1_c.y /= 2;
// p2_c.y /= 2;
dx := abs(p2_c.x - p1_c.x);
dy := -abs(p2_c.y - p1_c.y);
sx := ifx p1_c.x < p2_c.x then 1 else -1;