Fix duplicate OK and ENTER button on same message screen

This commit is contained in:
raven02 2013-02-21 21:20:26 +08:00
parent e9e24b0371
commit fc86a5737a

View File

@ -149,14 +149,9 @@ void PSPMsgDialog::DisplayYesNo()
}
void PSPMsgDialog::DisplayOk()
{
PPGeDrawText("OK", 250, 150, PPGE_ALIGN_LEFT, 0.5f, CalcFadedColor(0xFF0000FF));
}
void PSPMsgDialog::DisplayEnter()
{
PPGeDrawImage(okButtonImg, 200, 220, 20, 20, 0, CalcFadedColor(0xFFFFFFFF));
PPGeDrawText("Enter", 230, 220, PPGE_ALIGN_LEFT, 0.5f, CalcFadedColor(0xFFFFFFFF));
PPGeDrawText("Ok", 230, 220, PPGE_ALIGN_LEFT, 0.5f, CalcFadedColor(0xFFFFFFFF));
}
int PSPMsgDialog::Update()
@ -199,8 +194,6 @@ int PSPMsgDialog::Update()
if(flag & DS_OK)
DisplayOk();
if(flag & DS_VALIDBUTTON)
DisplayEnter();
if(flag & DS_CANCELBUTTON)
DisplayBack();