mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-31 16:30:00 +01:00
Optimized x adjustment
This commit is contained in:
parent
17b47de90d
commit
5659f6178f
@ -2928,8 +2928,8 @@ static void PrintOnAbilityPopUp(const u8 *str, u8 *spriteTileData1, u8 *spriteTi
|
|||||||
if (alignAbilityChars && i == MAX_CHARS_PRINTED)
|
if (alignAbilityChars && i == MAX_CHARS_PRINTED)
|
||||||
{
|
{
|
||||||
u32 width = GetStringWidth(FONT_SMALL, text1, 0);
|
u32 width = GetStringWidth(FONT_SMALL, text1, 0);
|
||||||
while (x1 + width < 64)
|
if (x1 + width < 64)
|
||||||
x1++;
|
x1 += 64 - (x1 + width);
|
||||||
}
|
}
|
||||||
|
|
||||||
windowTileData = AddTextPrinterAndCreateWindowOnAbilityPopUp(text1, x1, y, color1, color2, color3, &windowId);
|
windowTileData = AddTextPrinterAndCreateWindowOnAbilityPopUp(text1, x1, y, color1, color2, color3, &windowId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user