Skip to content

Commit a754ffd

Browse files
committed
Disable CGImage interpolation
1 parent 35e1b3a commit a754ffd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LiveViewKit/LiveView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public func image(from data: UnsafePointer<UInt8>, size: (Int, Int)) -> CGImage?
2727
bitmapInfo: CGBitmapInfo(rawValue: 0),
2828
provider: provider,
2929
decode: nil,
30-
shouldInterpolate: true,
31-
intent: CGColorRenderingIntent.defaultIntent
30+
shouldInterpolate: false,
31+
intent: .defaultIntent
3232
) else { return nil }
3333
return imageRef
3434
}

0 commit comments

Comments
 (0)