MsgDialog: Have the text WRAP_WIDTH match the horizontal lines. Fixes #2288.

This commit is contained in:
Henrik Rydgard 2013-06-15 23:54:47 +02:00
parent d6e5ec3163
commit f836517853

View File

@ -132,8 +132,9 @@ int PSPMsgDialog::Init(unsigned int paramAddr)
void PSPMsgDialog::DisplayMessage(std::string text, bool hasYesNo)
{
const float WRAP_WIDTH = 480.0f;
float y = 136.0f, h;
const float WRAP_WIDTH = 450.0f;
float y = 136.0f;
float h;
int n;
PPGeMeasureText(0, &h, &n, text.c_str(), FONT_SCALE, PPGE_LINE_WRAP_WORD, WRAP_WIDTH);
float h2 = h * (float)n / 2.0f;