SDL: logging message box information

This commit is contained in:
fysx
2013-12-06 16:02:21 +01:00
parent fa181fa1b2
commit b3ab19511f
+6
View File
@@ -3189,6 +3189,12 @@ SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
X11_ShowMessageBox(messageboxdata, buttonid) == 0) {
retval = 0;
}
#endif
#if __ANDROID__
if (retval == -1) {
SDL_Log ("SDL_ShowMessageBox[%s]: %s", messageboxdata->title, messageboxdata->message);
retval = 0;
}
#endif
if (retval == -1) {
SDL_SetError("No message system available");