From ffa83e8cccda950f89fdee1dbc93b02720ad60ce Mon Sep 17 00:00:00 2001 From: a92126 <182859762@qq.com> Date: Thu, 3 Oct 2024 22:12:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=89=A9=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E4=B8=A4=E4=B8=AA=E7=BC=96=E8=AF=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/open_agb_firm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index 862b75e..b0608e3 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -646,6 +646,9 @@ static void adjustGammaTableForGba(void) const float lcdGamma = g_oafConfig.lcdGamma; const float contrast = g_oafConfig.contrast; const float brightness = g_oafConfig.brightness; + + vu32 *const REG_LCD_PDC0_GTBL_FIFO = &getGxRegs()->pdc0.color_lut_data; + vu32 *const REG_LCD_PDC1_GTBL_FIFO = &getGxRegs()->pdc1.color_lut_data; for(u32 i = 0; i < 256; i++) { // Credits for this algo go to Extrems.