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/coins.c | |
parent | 05371e58753668147ec9e4d4bd161e5a044c058b (diff) |
resolved SetWindowTemplateFields
Diffstat (limited to 'src/coins.c')
-rw-r--r-- | src/coins.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/coins.c b/src/coins.c index a3c074b7c..9de600e7f 100644 --- a/src/coins.c +++ b/src/coins.c @@ -80,11 +80,10 @@ void PrintCoinsString(u32 coinAmount) void ShowCoinsWindow(u32 coinAmount, u8 x, u8 y) { - struct WindowTemplate template, template2; + struct WindowTemplate template; - SetWindowTemplateFields(&template, 0, x + 1, y + 1, 8, 3, 0xF, 0x20); - template2 = template; // again, why... - sCoinsWindowId = AddWindow(&template2); + template = SetWindowTemplateFields(0, x + 1, y + 1, 8, 3, 0xF, 0x20); + sCoinsWindowId = AddWindow(&template); FillWindowPixelBuffer(sCoinsWindowId, 0); PutWindowTilemap(sCoinsWindowId); TextWindow_SetStdFrame0_WithPal(sCoinsWindowId, 0x21D, 0xD0); |