diff options
author | jiangzhengwenjz <jiangzhengwenjzw@qq.com> | 2019-07-10 03:19:28 +0800 |
---|---|---|
committer | jiangzhengwenjz <jiangzhengwenjzw@qq.com> | 2019-07-13 05:26:19 +0800 |
commit | bcf27c2de147b1a04c32f8f9e5dd8a5eca657455 (patch) | |
tree | bcd68c21ad09b923b5985fda8a19ccdfcb3a507e /src/new_menu_helpers.c | |
parent | 05371e58753668147ec9e4d4bd161e5a044c058b (diff) |
resolved SetWindowTemplateFields
Diffstat (limited to 'src/new_menu_helpers.c')
-rw-r--r-- | src/new_menu_helpers.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/new_menu_helpers.c b/src/new_menu_helpers.c index 8ef515006..5e2452e14 100644 --- a/src/new_menu_helpers.c +++ b/src/new_menu_helpers.c @@ -671,10 +671,9 @@ u8 sub_80F78E0(u8 height) { if (sStartMenuWindowId == 0xFF) { - struct WindowTemplate wTemp1, wTemp2; - SetWindowTemplateFields(&wTemp1, 0, 0x16, 1, 7, height * 2 - 1, DLG_WINDOW_PALETTE_NUM, 0x13D); - wTemp2 = wTemp1; - sStartMenuWindowId = AddWindow(&wTemp2); + struct WindowTemplate template; + template = SetWindowTemplateFields(0, 0x16, 1, 7, height * 2 - 1, DLG_WINDOW_PALETTE_NUM, 0x13D); + sStartMenuWindowId = AddWindow(&template); PutWindowTilemap(sStartMenuWindowId); } return sStartMenuWindowId; |