Commit 9d4527193d6d522d98f448ec9ca46abd01573c8e

Ivan Epifanov 2021-06-21T15:42:47

Vita: append messagebox title

diff --git a/src/video/vita/SDL_vitamessagebox.c b/src/video/vita/SDL_vitamessagebox.c
index 61c214f..09c8ae1 100644
--- a/src/video/vita/SDL_vitamessagebox.c
+++ b/src/video/vita/SDL_vitamessagebox.c
@@ -37,6 +37,7 @@ int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
     SceMsgDialogUserMessageParam msgParam;
     SceMsgDialogButtonsParam buttonParam;
     SceDisplayFrameBuf dispparam;
+    char message[512];
 
     SceMsgDialogResult dialog_result;
     SceCommonDialogErrorCode init_result;
@@ -52,7 +53,9 @@ int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
     param.mode = SCE_MSG_DIALOG_MODE_USER_MSG;
 
     SDL_zero(msgParam);
-    msgParam.msg = (const SceChar8*)messageboxdata->message;
+    SDL_snprintf(message, 512, "%s\r\n\r\n%s", messageboxdata->title, messageboxdata->message);
+
+    msgParam.msg = (const SceChar8*)message;
     SDL_zero(buttonParam);
 
     if (messageboxdata->numbuttons == 3)