update
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user