From dc718d39e520da0b9e4c49d45da4f43700f0f895 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Tue, 23 Jun 2026 22:02:59 +0300 Subject: Add a function to draw a vertical line --- framebuffer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'framebuffer.h') diff --git a/framebuffer.h b/framebuffer.h index 2a26454..8c971c2 100644 --- a/framebuffer.h +++ b/framebuffer.h @@ -62,6 +62,9 @@ void fb_fill(Framebuffer fb, Pixel pixel); /* Puts a pixel onto fb in a specified position */ void fb_put(Framebuffer fb, size_t row, size_t col, Pixel pixel); +/* Draws a vertical line to fb on col x, from y1 to y2 */ +void fb_vert_line(Framebuffer fb, size_t x, size_t y1, size_t y2, Pixel pixel); + /* Initializes the terminal and sets TERM_WIDTH and TERM_HEIGHT */ void term_init(void); -- cgit v1.2.3