mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
MsgDialog: Have the text WRAP_WIDTH match the horizontal lines. Fixes #2288.
This commit is contained in:
parent
d6e5ec3163
commit
f836517853
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue