Ports/SDL2: Update for the recent StringView changes

This commit is contained in:
Tim Schumacher 2022-07-14 20:17:46 +02:00 committed by Linus Groh
parent 8da3914bdc
commit 4cf55c4056

View file

@ -633,7 +633,7 @@ index 0000000..ac5e358
+
+extern "C" int SERENITY_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
+{
+ GUI::MessageBox::show(nullptr, messageboxdata->message, messageboxdata->title);
+ GUI::MessageBox::show(nullptr, { messageboxdata->message, strlen(messageboxdata->message) }, { messageboxdata->title, strlen(messageboxdata->title) });
+ return 0;
+}
+