GUI: Clean up my previous commit.
svn-id: r53112
This commit is contained in:
parent
550d340959
commit
bcf3b35285
1 changed files with 1 additions and 4 deletions
|
@ -58,10 +58,7 @@ MessageDialog::MessageDialog(const Common::String &message, const char *defaultB
|
|||
int maxlineWidth = g_gui.getFont().wordWrapText(message, screenW - 2 * 20, lines);
|
||||
|
||||
// Calculate the desired dialog size (maxing out at 300*180 for now)
|
||||
if (maxlineWidth > buttonWidth)
|
||||
_w = maxlineWidth + 20;
|
||||
else
|
||||
_w = buttonWidth + 20;
|
||||
_w = MAX(maxlineWidth, buttonWidth) + 20;
|
||||
lineCount = lines.size();
|
||||
|
||||
_h = 16;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue