diff options
| author | DrNuget <drnuget@outlook.com> | 2025-11-02 15:24:16 +0200 |
|---|---|---|
| committer | DrNuget <drnuget@outlook.com> | 2025-11-02 15:24:16 +0200 |
| commit | da2c159e7f249091933659babaae9eb6fe8adc89 (patch) | |
| tree | 7b7ab1b35fb32868f4a1bb40f3e4fc7542d1a099 /src/brailleboi.c | |
| parent | 35b58a4123c0533d183aee0a7056044fd9ed52fe (diff) | |
| download | brailleboi-0.2.0.tar.gz | |
add image buffer clearingv0.2.0
Diffstat (limited to 'src/brailleboi.c')
| -rw-r--r-- | src/brailleboi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/brailleboi.c b/src/brailleboi.c index 83cb1bf..d7f3e67 100644 --- a/src/brailleboi.c +++ b/src/brailleboi.c @@ -2,6 +2,7 @@ #include <stdio.h> #include <wchar.h> #include <locale.h> +#include <string.h> #include "brailleboi.h" @@ -47,6 +48,11 @@ int braillePlot(int x, int y, image_buffer* buf) return 0; } +void brailleClearBuffer(image_buffer* buf) +{ + memset(buf->contents, 0, (buf->char_width * buf->char_height) * sizeof(int)); +} + void brailleUpdateScreen(image_buffer* buf) { wprintf(L"\033[2J"); |
