diff --git a/sysmodules/rosalina/include/draw.h b/sysmodules/rosalina/include/draw.h index 5a5ef106..982f4a1d 100644 --- a/sysmodules/rosalina/include/draw.h +++ b/sysmodules/rosalina/include/draw.h @@ -55,7 +55,11 @@ #define GPU_CMDLIST_CNT REG32(0x104018F0) #define LCD_TOP_BRIGHTNESS REG32(0x10202240) +#define LCD_TOP_FILLCOLOR REG32(0x10202204) #define LCD_BOT_BRIGHTNESS REG32(0x10202A40) +#define LCD_BOT_FILLCOLOR REG32(0x10202A04) + +#define LCD_FILLCOLOR_ENABLE (1u << 24) #define FB_BOTTOM_VRAM_ADDR ((void *)0x1F48F000) // cached #define FB_BOTTOM_VRAM_PA 0x1848F000 diff --git a/sysmodules/rosalina/source/draw.c b/sysmodules/rosalina/source/draw.c index f8ee6724..29f9c33e 100644 --- a/sysmodules/rosalina/source/draw.c +++ b/sysmodules/rosalina/source/draw.c @@ -204,6 +204,8 @@ u32 Draw_SetupFramebuffer(void) GPU_FB_BOTTOM_FMT = format; GPU_FB_BOTTOM_STRIDE = 240 * 2; + LCD_BOT_FILLCOLOR &= ~LCD_FILLCOLOR_ENABLE; + return framebufferCacheSize; }