mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Center OSK description correctly
This commit is contained in:
parent
d1b3fd0e49
commit
06f514ee24
1 changed files with 2 additions and 1 deletions
|
@ -109,8 +109,9 @@ void PSPOskDialog::RenderKeyboard()
|
||||||
|
|
||||||
const float keyboardLeftSide = (480.0f - (23.0f * KEYSPERROW)) / 2.0f;
|
const float keyboardLeftSide = (480.0f - (23.0f * KEYSPERROW)) / 2.0f;
|
||||||
float previewLeftSide = (480.0f - (15.0f * limit)) / 2.0f;
|
float previewLeftSide = (480.0f - (15.0f * limit)) / 2.0f;
|
||||||
|
float title = (480.0f - (7.0f * limit)) / 2.0f;
|
||||||
|
|
||||||
PPGeDrawText(oskDesc.c_str(), 480/2, 20, PPGE_ALIGN_CENTER, 0.5f, CalcFadedColor(0xFFFFFFFF));
|
PPGeDrawText(oskDesc.c_str(), title , 20, PPGE_ALIGN_CENTER, 0.5f, CalcFadedColor(0xFFFFFFFF));
|
||||||
for (int i = 0; i < limit; ++i)
|
for (int i = 0; i < limit; ++i)
|
||||||
{
|
{
|
||||||
u32 color = CalcFadedColor(0xFFFFFFFF);
|
u32 color = CalcFadedColor(0xFFFFFFFF);
|
||||||
|
|
Loading…
Add table
Reference in a new issue