Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80c5f1df authored by Mark Renouf's avatar Mark Renouf
Browse files

Long screenshots: Fix clipRect for ImageTile

Bug: 179378294
Test: manual
Change-Id: I5629edffb773854a32c77af290409a4d10ab652c
parent 40ad7812
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ class ImageTile implements AutoCloseable {

        RecordingCanvas canvas = mNode.beginRecording(w, h);
        canvas.save();
        canvas.clipRect(0, 0, mLocation.right, mLocation.bottom);
        canvas.clipRect(0, 0, mLocation.width(), mLocation.height());
        canvas.drawBitmap(Bitmap.wrapHardwareBuffer(mImage.getHardwareBuffer(), COLOR_SPACE),
                0, 0, null);
        canvas.restore();