mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-21 08:14:48 +00:00
MsgDialog: Have the text WRAP_WIDTH match the horizontal lines. Fixes #2288.
This commit is contained in:
parent
d6e5ec3163
commit
f836517853
@ -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…
x
Reference in New Issue
Block a user