Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Microsoft/WinObjC into github_master
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramu-msft committed May 12, 2016
2 parents fb94f6d + 0f6d640 commit a3ca025
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
12 changes: 6 additions & 6 deletions Frameworks/Foundation/NSBundle.mm
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ bool ScanFilename(BundleFile* dest, char* pDirectory, char* pFilename) {
}
dest->pszPlatform = copyWithoutExtension("~iphone", "");
szTemp[strlen(szTemp) - 7] = 0;
} else if (hasExtension(szTemp, "~iPad")) {
} else if (hasExtension(szTemp, "~ipad")) {
if (!isTabletDevice()) {
return false;
}
dest->pszPlatform = copyWithoutExtension("~iPad", "");
dest->pszPlatform = copyWithoutExtension("~ipad", "");
szTemp[strlen(szTemp) - 5] = 0;
}

Expand Down Expand Up @@ -867,9 +867,9 @@ - (NSString*)localizedStringForKey:(NSString*)key value:(NSString*)value table:(
memmove(pPos, pPos + 7, strlen(pPos + 7) + 1);
}
} else {
if (strstr(szPath, "~iPad") != NULL) {
char* pPos = strstr(szPath, "~iPad");
memmove(pPos, pPos + 4, strlen(pPos + 4) + 1);
if (strstr(szPath, "~ipad") != NULL) {
char* pPos = strstr(szPath, "~ipad");
memmove(pPos, pPos + 5, strlen(pPos + 5) + 1);
}
}

Expand Down Expand Up @@ -907,7 +907,7 @@ - (NSString*)localizedStringForKey:(NSString*)key value:(NSString*)value table:(
if (!isTabletDevice()) {
ret = makePath(self, name, extension, directory, localization, sublocal, @"~iphone");
} else {
ret = makePath(self, name, extension, directory, localization, sublocal, @"~iPad");
ret = makePath(self, name, extension, directory, localization, sublocal, @"~ipad");
}

path = (char*)[ret UTF8String];
Expand Down
9 changes: 5 additions & 4 deletions Frameworks/StarboardXaml/ApplicationMain.mm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ int ApplicationMainStart(
WOCDisplayMode* displayMode = [UIApplication displayMode];
[displayMode _setWindowSize:CGSizeMake(windowWidth, windowHeight)];

if ([UIApplication respondsToSelector:@selector(setStartupDisplayMode:)]) {
[UIApplication setStartupDisplayMode:displayMode];
[displayMode _updateDisplaySettings];
}

[NSBundle setMainBundlePath:@"."];

NSDictionary* infoDict = [[NSBundle mainBundle] infoDictionary];
Expand Down Expand Up @@ -95,10 +100,6 @@ int ApplicationMainStart(
}
#endif

if ([UIApplication respondsToSelector:@selector(setStartupDisplayMode:)]) {
[UIApplication setStartupDisplayMode:displayMode];
}

[displayMode _updateDisplaySettings];

UIApplicationMainInit(argc, argv, principalClassName, delegateClassName, defaultOrientation);
Expand Down
1 change: 1 addition & 0 deletions Frameworks/UIKit/NSTextStorage.mm
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ - (NSDictionary*)attributesAtIndex:(NSUInteger)location longestEffectiveRange:(N
- (void)dealloc {
[_layoutManagers release];
[_defaultAttributes release];
[_composed release];
[super dealloc];
}

Expand Down

0 comments on commit a3ca025

Please sign in to comment.