Commit 49cef77e316937a650353b8cd865637e5245d613

David Ludwig 2014-05-10T23:39:54

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/winrt/SDL_winrtmessagebox.cpp b/src/video/winrt/SDL_winrtmessagebox.cpp
index 4af1718..a2153ce 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;