Compare commits

...

2 Commits

Author SHA1 Message Date
halal-beef
656bf53b37
Merge 2440f68920 into 54d3d93a92 2024-08-11 19:52:44 +07:00
halal-beef
2440f68920
Quicken fb cleaning
Greatly improves boot time of uniLoader itself
2024-05-04 16:54:42 +01:00

View File

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