diff options
author | Garak <thomastaps194@comcast.net> | 2018-07-07 20:50:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-07 20:50:41 -0400 |
commit | 6c5d1c4a3de2f1a2d1855a542a6a5d53e4daf936 (patch) | |
tree | e9a140e919d72891ea825b64fc72a9cfa175ce88 /src/menu.c | |
parent | c4cc1522c86ec240c53c75455b650b1c69b2d5a4 (diff) | |
parent | 9238533346fd97c67e48fee33a204d1e8e2dd0a7 (diff) |
Merge pull request #9 from pret/master
sync with source repo
Diffstat (limited to 'src/menu.c')
-rw-r--r-- | src/menu.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/menu.c b/src/menu.c index 891644750..d50fb4f22 100644 --- a/src/menu.c +++ b/src/menu.c @@ -728,22 +728,22 @@ _08072B3E:\n\ } #endif -void MenuPrint_RightAligned(const u8 *str, u8 left, u8 top) +void MenuPrint_RightAligned(const u8 *str, u8 right, u8 top) { - Text_InitWindow8004D38(gMenuWindowPtr, str, gMenuTextTileOffset, left, top); + Text_InitWindow_RightAligned(gMenuWindowPtr, str, gMenuTextTileOffset, right, top); } -void sub_8072B80(const u8 *src, u8 a2, u8 a3, const u8 *a4) +void sub_8072B80(const u8 *src, u8 a2, u8 a3, const u8 *text) { u8 buffer[64]; - u8 width = GetStringWidth(gMenuWindowPtr, a4); + u8 width = GetStringWidth(gMenuWindowPtr, text); AlignString(gMenuWindowPtr, buffer, src, width, 1); Text_InitWindowAndPrintText(gMenuWindowPtr, buffer, gMenuTextTileOffset, a2, a3); } -void sub_8072BD8(const u8 *a1, u8 a2, u8 a3, u16 a4) +void MenuPrint_Centered(const u8 *text, u8 left, u8 top, u16 width) { - Text_InitWindow8004DB0(gMenuWindowPtr, a1, gMenuTextTileOffset, a2, a3, a4); + Text_InitWindow_Centered(gMenuWindowPtr, text, gMenuTextTileOffset, left, top, width); } u8 *AlignInt1InMenuWindow(u8 *dest, s32 value, u8 alignAmount, u8 alignType) |