Skip to content

Commit

Permalink
tvOS: Fix 720p display
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven committed Jan 14, 2025
1 parent 3153443 commit 6c1813b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/drivers/ui_cocoatouch.m
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ - (CAMetalLayer *)metalLayer {

- (void)setupMetalLayer {
self.metalLayer.device = MTLCreateSystemDefaultDevice();
self.metalLayer.contentsScale = [UIScreen mainScreen].nativeScale;
self.metalLayer.contentsScale = cocoa_screen_get_native_scale();
self.metalLayer.opaque = YES;
}

Expand Down

0 comments on commit 6c1813b

Please sign in to comment.