Skip to content

Commit

Permalink
fix(πŸ’š): fix regression with pixel density on iOS (#2726)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored Nov 5, 2024
1 parent 569acc9 commit d10a413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/skia/ios/RNSkia-iOS/SkiaMetalSurfaceFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class IOSSkiaContext : public RNSkia::WindowContext {
_layer.framebufferOnly = NO;
_layer.device = MTLCreateSystemDefaultDevice();
_layer.opaque = false;
_layer.contentsScale = 3;
_layer.contentsScale = [UIScreen mainScreen].scale;
_layer.pixelFormat = MTLPixelFormatBGRA8Unorm;
_layer.contentsGravity = kCAGravityBottomLeft;
_layer.drawableSize = CGSizeMake(width, height);
Expand Down

0 comments on commit d10a413

Please sign in to comment.