summaryrefslogtreecommitdiff
path: root/framebuffer.h
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-06-22 18:11:53 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-06-22 18:11:53 +0300
commit4d871b697295f892c76b2204ca50ad513d508788 (patch)
tree6f221561f4ab2c043895bee3d1f93af330572479 /framebuffer.h
parent769abee99e0fcf27c7700dc57e48e51ca50ccbc2 (diff)
downloadwafflestone-4d871b697295f892c76b2204ca50ad513d508788.tar.xz
Optimize fb_print()
Diffstat (limited to 'framebuffer.h')
-rw-r--r--framebuffer.h2
1 files changed, 2 insertions, 0 deletions
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 */