mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
cocoa: fix rendering artefacts in retina displays
Set the correct contentsScale in the CALayer instead of using the default (1.0) which causes rendering artefacts in retina displays due to using a smaller bitamp than the display size. See: https://developer.apple.com/documentation/quartzcore/calayer/1410746-contentsscale?language=objc Fix: #3942 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7828>
This commit is contained in:
parent
78b5b798d0
commit
5a3dd943fe
1 changed files with 4 additions and 0 deletions
|
@ -746,6 +746,10 @@ close_window_cb (gpointer data)
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)viewDidChangeBackingProperties {
|
||||||
|
self.layer.contentsScale = [[self window] backingScaleFactor];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue