mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2025-02-19 07:31:01 +00:00
fix mouse offset on notched screens
This commit is contained in:
parent
e4c4d2f85c
commit
455db22df5
@ -59,6 +59,7 @@ static ScreenView *sharedScreenView = nil;
|
||||
screenBounds.origin.x = (viewBounds.size.width - screenBounds.size.width)/2;
|
||||
screenBounds = CGRectIntegral(screenBounds);
|
||||
videoLayer.frame = screenBounds;
|
||||
screenBounds.origin.y = self.frame.origin.y;
|
||||
BOOL scaleIsIntegral = (floor(screenScale) == screenScale);
|
||||
NSString *screenFilter = scaleIsIntegral ? kCAFilterNearest : [[NSUserDefaults standardUserDefaults] stringForKey:@"screenFilter"];
|
||||
videoLayer.magnificationFilter = screenFilter;
|
||||
|
Loading…
x
Reference in New Issue
Block a user