]> granicus.if.org Git - handbrake/commitdiff
MacGui: mark some preview's layers as opaque.
authorDamiano Galassi <damiog@gmail.com>
Wed, 26 Jul 2017 14:05:34 +0000 (16:05 +0200)
committerDamiano Galassi <damiog@gmail.com>
Wed, 26 Jul 2017 14:05:34 +0000 (16:05 +0200)
macosx/HBPreviewView.m

index 3da874889900cd6b6393c5ae6d0034c89931efcc..e2e3c5459c514185420949a4618f34311b39571b 100644 (file)
     [_backLayer setShadowOpacity:0.5f];
     [_backLayer setShadowOffset:CGSizeMake(0, 0)];
     [_backLayer setAnchorPoint:CGPointMake(0, 0)];
+    _backLayer.opaque = YES;
 
     _pictureLayer = [CALayer layer];
     [_pictureLayer setBounds:CGRectMake(0.0, 0.0, self.frame.size.width - (BORDER_SIZE * 2), self.frame.size.height - (BORDER_SIZE * 2))];
     [_pictureLayer setAnchorPoint:CGPointMake(0, 0)];
+    _pictureLayer.opaque = YES;
 
     // Disable fade on contents change.
     NSMutableDictionary *actions = [NSMutableDictionary dictionary];