Commit 3d371a21 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Check for selectors UIScreen responds to, not the base system version.

Thanks to Vittorio Giovara for the patch!
parent edd6324c
......@@ -201,10 +201,8 @@ UIKit_VideoInit(_THIS)
{
_this->gl_config.driver_loaded = 1;
NSString *reqSysVer = @"3.2";
NSString *currSysVer = [[UIDevice currentDevice] systemVersion];
if ([currSysVer compare:reqSysVer options:NSNumericSearch] != NSOrderedAscending)
SDL_UIKit_supports_multiple_displays = YES;
// this tells us whether we are running on ios >= 3.2
SDL_UIKit_supports_multiple_displays = [UIScreen instancesRespondToSelector:@selector(currentMode)];
// Add the main screen.
UIScreen *uiscreen = [UIScreen mainScreen];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment