diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-06-22 18:11:53 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-06-22 18:11:53 +0300 |
| commit | 4d871b697295f892c76b2204ca50ad513d508788 (patch) | |
| tree | 6f221561f4ab2c043895bee3d1f93af330572479 /framebuffer.h | |
| parent | 769abee99e0fcf27c7700dc57e48e51ca50ccbc2 (diff) | |
| download | wafflestone-4d871b697295f892c76b2204ca50ad513d508788.tar.xz | |
Optimize fb_print()
Diffstat (limited to 'framebuffer.h')
| -rw-r--r-- | framebuffer.h | 2 |
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 */ |
