WinRT: fixed the max-button count for WinPhone 8.1 message boxes
authorDavid Ludwig <dludwig@pobox.com>
Sat, 10 May 2014 23:39:54 -0400
changeset 8770 968ebfc6d824
parent 8769 27789b1ac26d
child 8771 8af7a4af8fe0
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
--- a/src/video/winrt/SDL_winrtmessagebox.cpp	Sat May 10 23:28:53 2014 -0400
+++ b/src/video/winrt/SDL_winrtmessagebox.cpp	Sat May 10 23:39:54 2014 -0400
@@ -59,7 +59,7 @@
     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;