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/money.c | |
parent | 05371e58753668147ec9e4d4bd161e5a044c058b (diff) |
resolved SetWindowTemplateFields
Diffstat (limited to 'src/money.c')
-rw-r--r-- | src/money.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/money.c b/src/money.c index 616b448e1..39e5aaa32 100644 --- a/src/money.c +++ b/src/money.c @@ -121,11 +121,10 @@ void ChangeAmountInMoneyBox(int amount) void DrawMoneyBox(int amount, u8 x, u8 y) { - struct WindowTemplate template, template2; + struct WindowTemplate template; - SetWindowTemplateFields(&template, 0, x + 1, y + 1, 8, 3, 15, 8); - template2 = template; - sMoneyBoxWindowId = AddWindow(&template2); + template = SetWindowTemplateFields(0, x + 1, y + 1, 8, 3, 15, 8); + sMoneyBoxWindowId = AddWindow(&template); FillWindowPixelBuffer(sMoneyBoxWindowId, 0); PutWindowTilemap(sMoneyBoxWindowId); TextWindow_SetStdFrame0_WithPal(sMoneyBoxWindowId, 0x21D, 0xD0); |