Navigation Menu

Skip to content

Commit

Permalink
WinRT: fixed the max-button count for WinPhone 8.1 message boxes
Browse files Browse the repository at this point in the history
Doh.

The max button count on WinPhone 8.1 was set to three, not two.  Any more than
two leads to a crash.
  • Loading branch information
DavidLudwig committed May 11, 2014
1 parent ea99e0c commit 49cef77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/winrt/SDL_winrtmessagebox.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 49cef77

Please sign in to comment.