diff options
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 */ |
