mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix iPhone won’t switch to external display
This commit is contained in:
parent
259f0ce22e
commit
bed47ea30a
1 changed files with 3 additions and 0 deletions
|
@ -82,6 +82,8 @@
|
|||
- (void)updateScreen:(UIScreen *)screen {
|
||||
[self setMainScreen:screen];
|
||||
UIWindow *gameWindow = [(AppDelegate *)[[UIApplication sharedApplication] delegate] window];
|
||||
// Hide before moving window to external display, otherwise iPhone won't switch to it
|
||||
[gameWindow setHidden:YES];
|
||||
[gameWindow setScreen:screen];
|
||||
// Set optimal resolution
|
||||
// Dispatch later to prevent "no window is preset" error
|
||||
|
@ -93,6 +95,7 @@
|
|||
[screen setOverscanCompensation:UIScreenOverscanCompensationNone];
|
||||
}
|
||||
[self updateResolution:screen];
|
||||
[gameWindow setHidden:NO];
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue