Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit 3ae8390

Browse files
committed
fix: correct bitmap size.
1 parent 9e1f0f3 commit 3ae8390

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/assets/rose.svga

224 KB
Binary file not shown.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ internal class SVGACanvasDrawer(videoItem: SVGAVideoEntity, val dynamicItem: SVG
339339
private val shareMattePaint = Paint()
340340
private var shareMatteCanvas: Canvas? = null
341341
private var sharedMatteBitmap: Bitmap? = null
342-
private var sharedClearBitmap = Bitmap.createBitmap(0, 0, Bitmap.Config.ALPHA_8)
342+
private var sharedClearBitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ALPHA_8)
343343

344344
fun sharedPaint(): Paint {
345345
sharedPaint.reset()

0 commit comments

Comments
 (0)