GUI: Clean up my previous commit.

svn-id: r53112
This commit is contained in:
Torbjörn Andersson 2010-10-10 10:11:33 +00:00
parent 550d340959
commit bcf3b35285

View file

@ -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;