From 9b243c0f0ca2b32f96f40ef2624fefe48585949a Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Sun, 22 Oct 2023 18:37:53 +0100 Subject: [PATCH] Make line coordinates signed in draw_line() --- ncc/include/uvm/graphics.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ncc/include/uvm/graphics.h b/ncc/include/uvm/graphics.h index 83d0950..bba4eb4 100644 --- a/ncc/include/uvm/graphics.h +++ b/ncc/include/uvm/graphics.h @@ -56,10 +56,10 @@ void draw_line( u32* fb, u32 fb_width, u32 fb_height, - u32 x0, - u32 y0, - u32 x1, - u32 y1, + i32 x0, + i32 y0, + i32 x1, + i32 y1, u32 color ) {