aboutsummaryrefslogtreecommitdiffstats
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/gfx/palettes.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/engine/gfx/palettes.asm b/engine/gfx/palettes.asm
index 05202079..f69eeba9 100644
--- a/engine/gfx/palettes.asm
+++ b/engine/gfx/palettes.asm
@@ -396,11 +396,11 @@ LoadSGB:
ret nc
ld a, 1
ld [wOnSGB], a
- ld a, [wGBC]
+ ld a, [wOnCGB]
and a
- jr z, .notGBC
+ jr z, .notCGB
ret
-.notGBC
+.notCGB
di
call PrepareSuperNintendoVRAMTransfer
ei
@@ -563,21 +563,21 @@ Wait7000:
ret
SendSGBPackets:
- ld a, [wGBC]
+ ld a, [wOnCGB]
and a
- jr z, .notGBC
+ jr z, .notCGB
push de
- call InitGBCPalettes
+ call InitCGBPalettes
pop hl
call EmptyFunc3
ret
-.notGBC
+.notCGB
push de
call SendSGBPacket
pop hl
jp SendSGBPacket
-InitGBCPalettes:
+InitCGBPalettes:
ld a, $80 ; index 0 with auto-increment
ldh [rBGPI], a
inc hl