浏览代码

auto detect the box size of battle misc menu

Pal Lockheart 7 年之前
父节点
当前提交
c6937fbb50
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      uibattle.c

+ 1 - 1
uibattle.c

@@ -386,7 +386,7 @@ PAL_BattleUIDrawMiscMenu(
    //
    //
    // Draw the box
    // 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
    // Draw the menu items