Browse Source

auto detect the box size of battle misc menu

Pal Lockheart 7 years ago
parent
commit
c6937fbb50
1 changed files with 1 additions and 1 deletions
  1. 1 1
      uibattle.c

+ 1 - 1
uibattle.c

@@ -386,7 +386,7 @@ PAL_BattleUIDrawMiscMenu(
    //
    // Draw the box
    //
-   PAL_CreateBox(PAL_XY(2, 20), 4, 1, 0, FALSE);
+   PAL_CreateBox(PAL_XY(2, 20), 4, PAL_MenuTextMaxWidth(rgMenuItem, sizeof(rgMenuItem)/sizeof(MENUITEM)) - 1, 0, FALSE);
 
    //
    // Draw the menu items