From 4be3f76c6d15c77f3e83a00867d1c5c50f57b18e Mon Sep 17 00:00:00 2001 From: a92126 <182859762@qq.com> Date: Thu, 3 Oct 2024 22:16:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E6=9C=89=E4=B8=A4=E4=B8=AA=E8=B5=8B?= =?UTF-8?q?=E5=80=BC=E9=97=AE=E9=A2=98=E9=9C=80=E8=A6=81=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/arm11/anopatch.h | 2 +- source/arm11/open_agb_firm.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/arm11/anopatch.h b/include/arm11/anopatch.h index eb751b1..34cd6ca 100644 --- a/include/arm11/anopatch.h +++ b/include/arm11/anopatch.h @@ -1,7 +1,7 @@ #ifndef __ANO_PATCH_H__ #define __ANO_PATCH_H__ -#include "type.h" +#include "types.h" #define INPUT(type) type #define OUTPUT(type) type* diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index b0608e3..3bfa83b 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -28,6 +28,7 @@ // @MERGE 231006 START #include "drivers/lgy_common.h" #include "drivers/lgy11.h" +#include "drivers/gx.h" // @MERGE 231006 END #include "arm11/drivers/lgyfb.h" #include "arm11/console.h" @@ -657,8 +658,8 @@ static void adjustGammaTableForGba(void) 1.0f / lcdGamma) * 255.0f; // Same adjustment for red/green/blue. - REG_LCD_PDC0_GTBL_FIFO = res<<16 | res<<8 | res; - REG_LCD_PDC1_GTBL_FIFO = res<<16 | res<<8 | res; + *REG_LCD_PDC0_GTBL_FIFO = res<<16 | res<<8 | res; + *REG_LCD_PDC1_GTBL_FIFO = res<<16 | res<<8 | res; } }