diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-06-29 18:21:17 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-06-29 18:21:17 +0300 |
| commit | dfdb1a802028debd5451c1c8acaf75ea1e949102 (patch) | |
| tree | 17185e339f75af227af27a10677437710dcb9a87 /framebuffer.h | |
| parent | 28b277fbd8a8a9e1e0e190e608ff193118f5fd1f (diff) | |
| download | wafflestone-dfdb1a802028debd5451c1c8acaf75ea1e949102.tar.xz | |
Add UTF-16 compatibility
Diffstat (limited to 'framebuffer.h')
| -rw-r--r-- | framebuffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |
