From c2b8b55634849ed5ce3b5d6a9236f240e19ae4de Mon Sep 17 00:00:00 2001 From: Ivan Epifanov Date: Thu, 10 Jun 2021 12:06:28 +0300 Subject: [PATCH] Older api, not needed --- src/video/vita/SDL_vitamessagebox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video/vita/SDL_vitamessagebox.c b/src/video/vita/SDL_vitamessagebox.c index a1807a572..61c214f7a 100644 --- a/src/video/vita/SDL_vitamessagebox.c +++ b/src/video/vita/SDL_vitamessagebox.c @@ -33,7 +33,6 @@ int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid) { #if SDL_VIDEO_RENDER_VITA_GXM - SceCommonDialogConfigParam commonDialogConfigParam; SceMsgDialogParam param; SceMsgDialogUserMessageParam msgParam; SceMsgDialogButtonsParam buttonParam; @@ -47,14 +46,15 @@ int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid) { return -1; } - SDL_zero(commonDialogConfigParam); - sceCommonDialogSetConfigParam(&commonDialogConfigParam); + SDL_zero(param); sceMsgDialogParamInit(¶m); param.mode = SCE_MSG_DIALOG_MODE_USER_MSG; + SDL_zero(msgParam); msgParam.msg = (const SceChar8*)messageboxdata->message; SDL_zero(buttonParam); + if (messageboxdata->numbuttons == 3) { msgParam.buttonType = SCE_MSG_DIALOG_BUTTON_TYPE_3BUTTONS;