From b12ca99506c7538a74cb2ed39ce0e1781e934a2a Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Fri, 8 Nov 2024 08:56:45 +0100 Subject: Update input --- graphics.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'graphics.c') diff --git a/graphics.c b/graphics.c index d58f0d8..014ec83 100644 --- a/graphics.c +++ b/graphics.c @@ -386,6 +386,9 @@ void fill_rectangle(u32 op, u32 color, f64 x0, f64 y0, f64 width, f64 height) { } void fill_triangle(u32 op, u32 color, f64 x0, f64 y0, f64 x1, f64 y1, f64 x2, f64 y2) { + // FIXME PERF: + // Implement better algorithm. + i64 min_x = (i64) floor(min3(x0, x1, x2)); i64 min_y = (i64) floor(min3(y0, y1, y2)); i64 max_x = (i64) ceil (max3(x0, x1, x2)); -- cgit v1.2.3