Less hacky, less buggy

This commit is contained in:
Lior Halphon 2022-02-20 18:59:38 +02:00
parent a48f251039
commit 7c8b9cf05a

View File

@ -90,9 +90,9 @@
return self;
}
- (void)setImage:(NSImage *)image
-(void)viewWillDraw
{
[super setImage:image];
[super viewWillDraw];
for (CALayer *layer in self.layer.sublayers) {
layer.magnificationFilter = kCAFilterNearest;
}