From fd8b3d7676a2db2cdad8a539bd66ec108ad9e7e5 Mon Sep 17 00:00:00 2001 From: RoamerX <20692776+RoamerX@users.noreply.github.com> Date: Wed, 23 Apr 2025 18:25:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E6=80=A7=E5=BC=B9=E7=AA=97=E6=B1=89?= =?UTF-8?q?=E5=AD=97=E4=B8=8A=E4=B8=8B=E4=B8=80=E8=A1=8C=E5=83=8F=E7=B4=A0?= =?UTF-8?q?=E8=A1=A5=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决方案来自卧看微尘聚聚,感谢 --- src/battle_interface.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/battle_interface.c b/src/battle_interface.c index 1aa17a6b96..e4f33ae2a6 100644 --- a/src/battle_interface.c +++ b/src/battle_interface.c @@ -2473,7 +2473,7 @@ static u8* AddTextPrinterAndCreateWindowOnAbilityPopUp(const u8 *str, u32 x, u32 u8 color[3] = {color1, color2, color3}; struct WindowTemplate winTemplate = {0}; winTemplate.width = POPUP_WINDOW_WIDTH; - winTemplate.height = 2; + winTemplate.height = 3; *windowId = AddWindow(&winTemplate); FillWindowPixelBuffer(*windowId, PIXEL_FILL(color1)); @@ -2491,9 +2491,12 @@ static void TextIntoAbilityPopUp(void *dest, u8 *windowTileData, s32 xTileAmount do { if (arg3) - CpuCopy32(windowTileData + 16, dest + 16, 16); + CpuCopy32(windowTileData + 12, dest + 12, 20); else + { CpuCopy32(windowTileData + 20, dest + 20, 12); + CpuCopy32(windowTileData + 512, dest + 512, 4); + } dest += 32, windowTileData += 32; xTileAmount--; } while (xTileAmount != 0);