From 2440f6892057aca2933c9e6f66acd77fc9ec52f9 Mon Sep 17 00:00:00 2001 From: halal-beef <78730004+halal-beef@users.noreply.github.com> Date: Sat, 4 May 2024 16:54:42 +0100 Subject: [PATCH] Quicken fb cleaning Greatly improves boot time of uniLoader itself --- lib/simplefb/simplefb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/simplefb/simplefb.c b/lib/simplefb/simplefb.c index 53e0c67..1484226 100644 --- a/lib/simplefb/simplefb.c +++ b/lib/simplefb/simplefb.c @@ -10,8 +10,7 @@ #include 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 */