Commit 2b84d3b6 authored by Roman Sedaikin's avatar Roman Sedaikin

Fixed alpha layer test rendering.

parent 1d84dd1d
......@@ -98,8 +98,8 @@ class Renderer(
// Alpha layers test
val rectW = 100f
val rectH = 100f
val left = (width - rectW) / 2f
val top = (height - rectH) / 2f
val left = (width / layer.contentScale - rectW) / 2f
val top = (height / layer.contentScale - rectH) / 2f
val pictureRecorder = PictureRecorder()
val pictureCanvas = pictureRecorder.beginRecording(
Rect.makeLTRB(left, top, left + rectW, top + rectH)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment