Skip to content

Commit da4d520

Browse files
Merge pull request livecode#7257 from livecodepanos/ipad_pro_11_support
[iPad Pro 11] Ensure plist has new splash screen references and prevent memory corruption
2 parents b6fd8ac + 4f86b83 commit da4d520

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

engine/src/mbliphoneapp.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,8 +1564,8 @@ - (void)switchImageToOrientation: (UIInterfaceOrientation)p_new_orientation
15641564
t_img_cnt = 0;
15651565

15661566
// Compute the list of image names (and rotations) to try in order.
1567-
NSString *t_image_names[5];
1568-
CGFloat t_image_angles[5];
1567+
NSString *t_image_names[6];
1568+
CGFloat t_image_angles[6];
15691569
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad)
15701570
{
15711571
// MW-2011-10-18: [[ Bug 9823 ]] The S/B only ever has portrait / landscape

ide-support/revsaveasiosstandalone.livecodescript

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,10 +1760,12 @@ private command revCreateMobilePlist pSettings, pAppBundle, pTarget, pFonts, pPl
17601760
if tIPadOrientations contains "Portrait" then
17611761
put "Default-Portrait|Default-Portrait|{768, 1024}|Portrait" & return after tSplashScreens
17621762
put "Default-iPadProPortrait|Default-iPadProPortrait|{1024, 1366}|Portrait" & return after tSplashScreens
1763+
put "Default-iPadPro11Portrait|Default-iPadPro11Portrait|{834, 1194}|Portrait" & return after tSplashScreens
17631764
end if
17641765
if tIPadOrientations contains "Landscape" then
17651766
put "Default-Landscape|Default-Landscape|{768, 1024}|Landscape" & return after tSplashScreens
17661767
put "Default-iPadProLandscape|Default-iPadProLandscape|{1024, 1366}|Landscape" & return after tSplashScreens
1768+
put "Default-iPadPro11Landscape|Default-iPadPro11Landscape|{834, 1194}|Landscape" & return after tSplashScreens
17671769
end if
17681770
end if
17691771

0 commit comments

Comments
 (0)