From dfdb1a802028debd5451c1c8acaf75ea1e949102 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Mon, 29 Jun 2026 18:21:17 +0300 Subject: Add UTF-16 compatibility --- framebuffer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framebuffer.h') diff --git a/framebuffer.h b/framebuffer.h index 6191f2c..4bba181 100644 --- a/framebuffer.h +++ b/framebuffer.h @@ -44,8 +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 */ + char *print_buf; /* is of size ((38 + sizeof(wchar_t)) * width * height) + * ^^^^^^^^^^^^^^^^^^^^^^ is ANSI 24-bit fg and bg + one wchar_t */ } Framebuffer; /* Check if fb == NULL in case malloc() fails */ -- cgit v1.2.3