Browse Source

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.
David Ludwig 11 years ago
parent
commit
49cef77e31
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/video/winrt/SDL_winrtmessagebox.cpp

+ 1 - 1
src/video/winrt/SDL_winrtmessagebox.cpp

@@ -59,7 +59,7 @@ WINRT_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
     SDL_VideoDevice *_this = SDL_GetVideoDevice();
     SDL_VideoDevice *_this = SDL_GetVideoDevice();
 
 
 #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
 #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
-    const int maxbuttons = 3;
+    const int maxbuttons = 2;
     const char * platform = "Windows Phone 8.1+";
     const char * platform = "Windows Phone 8.1+";
 #else
 #else
     const int maxbuttons = 3;
     const int maxbuttons = 3;