From a9fcca52d0895826dc3fff6da770fb2975a39437 Mon Sep 17 00:00:00 2001 From: TuxSH <1922548+TuxSH@users.noreply.github.com> Date: Thu, 14 Sep 2023 00:18:26 +0200 Subject: [PATCH] Fix issue where luma screeninit would result in two white screens or wrong colors --- arm11/source/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arm11/source/main.c b/arm11/source/main.c index 32f6193..9992389 100644 --- a/arm11/source/main.c +++ b/arm11/source/main.c @@ -84,7 +84,8 @@ static void initScreens(u32 brightnessLevel, struct fb *fbs) *(vu32 *)0x10400490 = 0x000002D0; *(vu32 *)0x1040049C = 0x00000000; - //Disco register + // Color LUT + *(vu32 *)0x10400480 = 0; for(u32 i = 0; i < 256; i++) *(vu32 *)0x10400484 = 0x10101 * i; @@ -119,7 +120,8 @@ static void initScreens(u32 brightnessLevel, struct fb *fbs) *(vu32 *)0x10400590 = 0x000002D0; *(vu32 *)0x1040059C = 0x00000000; - //Disco register + // Color LUT + *(vu32 *)0x10400580 = 0; for(u32 i = 0; i < 256; i++) *(vu32 *)0x10400584 = 0x10101 * i;