Less hacky, less buggy
This commit is contained in:
parent
a48f251039
commit
7c8b9cf05a
@ -90,9 +90,9 @@
|
|||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setImage:(NSImage *)image
|
-(void)viewWillDraw
|
||||||
{
|
{
|
||||||
[super setImage:image];
|
[super viewWillDraw];
|
||||||
for (CALayer *layer in self.layer.sublayers) {
|
for (CALayer *layer in self.layer.sublayers) {
|
||||||
layer.magnificationFilter = kCAFilterNearest;
|
layer.magnificationFilter = kCAFilterNearest;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user