This commit is contained in:
halal-beef 2024-08-11 19:52:44 +07:00 committed by GitHub
commit 656bf53b37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,8 +10,7 @@
#include <string.h> #include <string.h>
void clean_fb(volatile char *fb, int width, int height, int stride) { void clean_fb(volatile char *fb, int width, int height, int stride) {
for (volatile char *addr = fb; addr < fb + (width * height * stride); addr += stride) memset(fb, 0x0, (width * height * stride));
*(int*)(addr) = 0x0;
} }
/* RGB888 format */ /* RGB888 format */