mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2024-11-21 19:40:07 +00:00
Merge 2440f68920
into 3fae0e9880
This commit is contained in:
commit
607ab8dcbd
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user