From 4d871b697295f892c76b2204ca50ad513d508788 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Mon, 22 Jun 2026 18:11:53 +0300 Subject: Optimize fb_print() --- framebuffer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'framebuffer.h') diff --git a/framebuffer.h b/framebuffer.h index cadcb00..2a26454 100644 --- a/framebuffer.h +++ b/framebuffer.h @@ -44,6 +44,8 @@ typedef struct Pixel_s { typedef struct Framebuffer_s { Pixel **fb; /* Adressed as fb[row][col] or fb[x][y] */ size_t width, height; + char *print_buf; /* is of size (42 * width * height) + * 42 is ANSI 24-bit fg and bg + one wchar_t */ } Framebuffer; /* Check if fb == NULL in case malloc() fails */ -- cgit v1.2.3