blob: f4799972e3cfc01e99d507d5b27ee2a79d4143a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
Func_12871:
call ZeroObjectPositions
ld a, $01
ld [wVBlankOAMCopyToggle], a
call Set_OBJ_8x8
call SetDefaultPalettes
xor a
ldh [hSCX], a
ldh [hSCY], a
ldh [hWX], a
ldh [hWY], a
call SetWindowOff
ret
; same as SetDefaultConsolePalettes
; but forces all wBGP, wOBP0 and wOBP1
; to be the default
SetDefaultPalettes:
push hl
push bc
push de
ld a, %11100100
ld [wBGP], a
ld [wOBP0], a
ld [wOBP1], a
ld a, 4
ld [wTextBoxFrameType], a
bank1call SetDefaultConsolePalettes
call FlushAllPalettes
pop de
pop bc
pop hl
ret
|