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

Commit d3dd824

Browse files
committed
fix: dynamic image scale text
1 parent 2f0ace2 commit d3dd824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ internal class SVGACanvasDrawer(videoItem: SVGAVideoEntity, val dynamicItem: SVG
229229
, (drawingBitmap.height * matrixArray[4] + matrixArray[5]).toInt())
230230
}
231231
}
232-
drawTextOnBitmap(canvas, drawingBitmap, sprite, frameMatrix)
232+
drawTextOnBitmap(canvas, videoItem.imageMap[bitmapKey] ?: drawingBitmap, sprite, frameMatrix)
233233
}
234234

235235
private fun drawTextOnBitmap(canvas: Canvas, drawingBitmap: Bitmap, sprite: SVGADrawerSprite, frameMatrix: Matrix) {

0 commit comments

Comments
 (0)