Fix bytesPerRow

This commit is contained in:
Ali
2021-11-05 17:36:45 +04:00
parent 3989b4887d
commit 37148c70d4
2 changed files with 5 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ final class SoftwareAnimationRenderer: ASDisplayNode, AnimationRenderer {
private var highlightedColor: UIColor?
func render(queue: Queue, width: Int, height: Int, bytesPerRow: Int, data: Data, type: AnimationRendererFrameType, completion: @escaping () -> Void) {
assert(bytesPerRow > 0)
queue.async { [weak self] in
switch type {
case .argb: