summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-07-26 16:05:34 +0200
committerDamiano Galassi <[email protected]>2017-07-26 16:05:34 +0200
commit47334f46a3c8f9b81326f24248caa7ca29f6269d (patch)
tree0c3324d68c2ce55a32ceadc777c7d9fd36b0879b /macosx
parent5dabd8e3f9d194047433a503234616bcf83b363d (diff)
MacGui: mark some preview's layers as opaque.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBPreviewView.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/macosx/HBPreviewView.m b/macosx/HBPreviewView.m
index 3da874889..e2e3c5459 100644
--- a/macosx/HBPreviewView.m
+++ b/macosx/HBPreviewView.m
@@ -63,10 +63,12 @@
[_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];