diff --git a/source/draw.c b/source/draw.c index 98c3246..1bb0010 100644 --- a/source/draw.c +++ b/source/draw.c @@ -9,7 +9,7 @@ #include "memory.h" #include "types.h" -static struct fb* fb = (struct fb*) 0x23FFFE00; +static struct fb *fb = (struct fb *)0x23FFFE00; void shutdownLCD(void){ @@ -30,8 +30,8 @@ void shutdownLCD(void){ } void clearScreen(void){ - memset(fb->top_left, 0, 0x38400); - memset(fb->top_right, 0, 0x38400); + memset(fb->top_left, 0, 0x46500); + memset(fb->top_right, 0, 0x46500); memset(fb->bottom, 0, 0x38400); } @@ -39,6 +39,6 @@ void loadSplash(void){ //Check if it's a no-screen-init A9LH boot via PDN_GPU_CNT if (*((u8*)0x10141200) == 0x1) return; clearScreen(); - fileRead(fb->top_left, "/rei/splash.bin", 0x46500); + if(fileRead(fb->top_left, "/rei/splash.bin", 0x46500) != 0) return; u64 i = 0xFFFFFF; while(--i) __asm("mov r0, r0"); //Less Ghetto sleep func } \ No newline at end of file