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 8770968ebfc6d824
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
     1.1 --- a/src/video/winrt/SDL_winrtmessagebox.cpp	Sat May 10 23:28:53 2014 -0400
     1.2 +++ b/src/video/winrt/SDL_winrtmessagebox.cpp	Sat May 10 23:39:54 2014 -0400
     1.3 @@ -59,7 +59,7 @@
     1.4      SDL_VideoDevice *_this = SDL_GetVideoDevice();
     1.5  
     1.6  #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
     1.7 -    const int maxbuttons = 3;
     1.8 +    const int maxbuttons = 2;
     1.9      const char * platform = "Windows Phone 8.1+";
    1.10  #else
    1.11      const int maxbuttons = 3;