summaryrefslogtreecommitdiff
path: root/src/engine/naming_screen.c
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-17 19:31:23 -0500
committerProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-17 19:31:23 -0500
commit2869160d630f569110ca895ff924070d626fd54b (patch)
tree3599a6c1a5de390a852828d6f918f643e2befa8b /src/engine/naming_screen.c
parent093422f3065ed47db9a475b0c9d67e9c5bc2c364 (diff)
use Defvars instead of some Dma macros and hopefully last while(1)s
Diffstat (limited to 'src/engine/naming_screen.c')
-rw-r--r--src/engine/naming_screen.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/engine/naming_screen.c b/src/engine/naming_screen.c
index d54b84720..97819322c 100644
--- a/src/engine/naming_screen.c
+++ b/src/engine/naming_screen.c
@@ -1616,16 +1616,8 @@ static void sub_80B7558(void)
static void sub_80B7568(void)
{
- const void *src;
- void *dst;
-
- src = gNamingScreenMenu_Gfx;
- dst = (void *)(VRAM + gMenuMessageBoxContentTileOffset * 32);
- DmaCopy16(3, src, dst, 0x800);
-
- src = gNamingScreenMenu_Gfx;
- dst = (void *)(VRAM + 0x8000 + gMenuMessageBoxContentTileOffset * 32);
- DmaCopy16(3, src, dst, 0x800);
+ DmaCopy16Defvars(3, gNamingScreenMenu_Gfx, (void *)(VRAM + gMenuMessageBoxContentTileOffset * 32), 0x800);
+ DmaCopy16Defvars(3, gNamingScreenMenu_Gfx, (void *)(VRAM + 0x8000 + gMenuMessageBoxContentTileOffset * 32), 0x800);
}
static void sub_80B75B0(void)