diff options
author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2018-01-17 17:47:46 -0500 |
---|---|---|
committer | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2018-01-17 17:47:46 -0500 |
commit | f07cdb4c9723bdbb1fcdbbe622d39936ae5b532f (patch) | |
tree | 6b423f3b23c640582d6a7f44a802f8ba3dc6121e /src/field/menu_helpers.c | |
parent | 05d18468a4b817c0976b16017ef7b6044befed7f (diff) |
use Dma Large loops for every while(1) Dma loop
Diffstat (limited to 'src/field/menu_helpers.c')
-rw-r--r-- | src/field/menu_helpers.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/field/menu_helpers.c b/src/field/menu_helpers.c index 54668addb..388d98ec7 100644 --- a/src/field/menu_helpers.c +++ b/src/field/menu_helpers.c @@ -296,9 +296,6 @@ bool8 sub_80F9344(void) void sub_80F9368(void) { - u8 *addr; - u32 size; - REG_DISPCNT = 0; REG_BG3CNT = 0; REG_BG2CNT = 0; @@ -312,21 +309,7 @@ void sub_80F9368(void) REG_BG1VOFS = 0; REG_BG0HOFS = 0; REG_BG0VOFS = 0; - - addr = (u8 *)VRAM; - size = 0x18000; - while (1) - { - DmaFill16(3, 0, addr, 0x1000); - addr += 0x1000; - size -= 0x1000; - if (size <= 0x1000) - { - DmaFill16(3, 0, addr, size); - break; - } - } - + DmaFill16Large(3, 0, (u8 *)VRAM, 0x18000, 0x1000); DmaClear32(3, OAM, OAM_SIZE); DmaClear16(3, PLTT, PLTT_SIZE); } |