This commit is contained in:
Horis 2024-04-11 12:28:07 +08:00
parent ad0aeab06e
commit 2720898214

View File

@ -181,9 +181,7 @@ fun View.screenshot(picture: Picture) {
fun View.screenshot(canvasRecorder: CanvasRecorder) {
if (width > 0 && height > 0) {
canvasRecorder.record(width, height) {
withTranslation(-scrollX.toFloat(), -scrollY.toFloat()) {
draw(this)
}
draw(this)
}
}
}