diff options
author | Marcus Huderle <huderlem@gmail.com> | 2018-12-26 10:07:56 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-26 10:07:56 -0600 |
commit | 7480a41cfe9b7d871e7217e4f46378fa4ccda8cd (patch) | |
tree | 14996bf160fc925f34692bd838cd01a03e8a7bf4 /src/menu.c | |
parent | 2dd706ca5410d98ad214ceff7026d6db276f4d5a (diff) | |
parent | b9ad5de8a044623b9d4d76307a76c00e2fcf0da6 (diff) |
Merge pull request #482 from DizzyEggg/bg
Fix raw SetGpuReg and SetBgAttribute args
Diffstat (limited to 'src/menu.c')
-rw-r--r-- | src/menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/menu.c b/src/menu.c index e0e5eb4eb..8c3c61ea7 100644 --- a/src/menu.c +++ b/src/menu.c @@ -1934,8 +1934,8 @@ void sub_8199D98(void) void sub_8199DF0(u32 bg, u8 a1, int a2, int a3) { - int temp = (!GetBgAttribute(bg, 4)) ? 0x20 : 0x40; - void *addr = (void *)((GetBgAttribute(bg, 1) * 0x4000) + (GetBgAttribute(bg, 10) + a2) * temp); + int temp = (!GetBgAttribute(bg, BG_ATTR_PALETTEMODE)) ? 0x20 : 0x40; + void *addr = (void *)((GetBgAttribute(bg, BG_ATTR_CHARBASEINDEX) * 0x4000) + (GetBgAttribute(bg, BG_ATTR_BASETILE) + a2) * temp); RequestDma3Fill(a1 << 24 | a1 << 16 | a1 << 8 | a1, addr + VRAM, a3 * temp, 1); } |