mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-11-26 00:49:20 +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;
|
||||
if ([AppDelegate sharedEmulator]) {
|
||||
screenSize = [AppDelegate sharedEmulator].screenSize;
|
||||
} else {
|
||||
screenSize = CGSizeMake(1, 1);
|
||||
}
|
||||
[self.layer addSublayer:videoLayer];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user