From 49cef77e316937a650353b8cd865637e5245d613 Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Sat, 10 May 2014 23:39:54 -0400 Subject: [PATCH] WinRT: fixed the max-button count for WinPhone 8.1 message boxes Doh. The max button count on WinPhone 8.1 was set to three, not two. Any more than two leads to a crash. --- src/video/winrt/SDL_winrtmessagebox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/winrt/SDL_winrtmessagebox.cpp b/src/video/winrt/SDL_winrtmessagebox.cpp index 4af17187a69f3..a2153ce0fa975 100644 --- a/src/video/winrt/SDL_winrtmessagebox.cpp +++ b/src/video/winrt/SDL_winrtmessagebox.cpp @@ -59,7 +59,7 @@ WINRT_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid) SDL_VideoDevice *_this = SDL_GetVideoDevice(); #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP - const int maxbuttons = 3; + const int maxbuttons = 2; const char * platform = "Windows Phone 8.1+"; #else const int maxbuttons = 3;