summaryrefslogtreecommitdiff
path: root/arm9/lib/src/GX_g3x.c
diff options
context:
space:
mode:
authorMade <made111@gmx.de>2020-05-18 02:32:07 +0200
committerMade <made111@gmx.de>2020-05-18 02:32:07 +0200
commit8ac22ef273a2863591f7e382d2d8781cc434e8a5 (patch)
tree9a4385cac3a026ad7e538a9798f41a841a3b7928 /arm9/lib/src/GX_g3x.c
parent648c9421d8ecbd8642f4ae393ab8add89fb3dc00 (diff)
Rename globals
Diffstat (limited to 'arm9/lib/src/GX_g3x.c')
-rw-r--r--arm9/lib/src/GX_g3x.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arm9/lib/src/GX_g3x.c b/arm9/lib/src/GX_g3x.c
index 5a03c4ca..6f968e7e 100644
--- a/arm9/lib/src/GX_g3x.c
+++ b/arm9/lib/src/GX_g3x.c
@@ -2,7 +2,7 @@
#include "main.h"
#include "gx.h"
-extern u32 UNK_02106814;
+extern u32 GXi_DmaId;
ARM_FUNC asm void GXi_NopClearFifo128_(void *reg){
mov r1, #0x0
@@ -178,10 +178,10 @@ ARM_FUNC void G3X_SetClearColor(u32 col, u32 alpha, u32 depth, u32 polygon_id, u
}
ARM_FUNC void G3X_InitTable(){
- if (UNK_02106814 != -1)
+ if (GXi_DmaId != -1)
{
- MI_DmaFill32Async(UNK_02106814, (void *)&reg_G3X_EDGE_COLOR_0, 0x0, 0x10, 0x0, 0x0);
- MI_DmaFill32(UNK_02106814, (void *)&reg_G3X_FOG_TABLE_0, 0x0, 0x60);
+ MI_DmaFill32Async(GXi_DmaId, (void *)&reg_G3X_EDGE_COLOR_0, 0x0, 0x10, 0x0, 0x0);
+ MI_DmaFill32(GXi_DmaId, (void *)&reg_G3X_FOG_TABLE_0, 0x0, 0x60);
}
else
{