Skip to content

Commit b5db2fe

Browse files
committed
add isFilterBitmap = true while antiAlias.
1 parent 0a1e487 commit b5db2fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/src/main/java/com/opensource/svgaplayer/SVGACanvasDrawer.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ class SVGACanvasDrawer(videoItem: SVGAVideoEntity, val dynamicItem: SVGADynamicE
152152
sharedPaint.reset()
153153
sharedContentTransform.reset()
154154
sharedPaint.isAntiAlias = videoItem.antiAlias
155+
sharedPaint.isFilterBitmap = videoItem.antiAlias
155156
sharedPaint.alpha = (sprite.frameEntity.alpha * 255).toInt()
156157
performScaleType(scaleType)
157158
sharedContentTransform.preConcat(sprite.frameEntity.transform)

0 commit comments

Comments
 (0)