mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-11-22 03:30:59 +00:00
fix crash on ScreenView layout if emulator bundle is not loaded
This commit is contained in:
parent
118bfccca9
commit
d1a0721b40
@ -24,7 +24,11 @@ static ScreenView *sharedScreenView = nil;
|
||||
sharedScreenView = self;
|
||||
videoLayer = [CALayer layer];
|
||||
[AppDelegate sharedEmulator].screenLayer = videoLayer;
|
||||
screenSize = [AppDelegate sharedEmulator].screenSize;
|
||||
if ([AppDelegate sharedEmulator]) {
|
||||
screenSize = [AppDelegate sharedEmulator].screenSize;
|
||||
} else {
|
||||
screenSize = CGSizeMake(1, 1);
|
||||
}
|
||||
[self.layer addSublayer:videoLayer];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user