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

Commit 686a36c8 authored by Owen Lin's avatar Owen Lin Committed by Android (Google) Code Review
Browse files

Merge "Fix a UI bug in rendering a rotated image."

parents 0d49dc5b a2586467
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -42,7 +42,9 @@ public abstract class AbstractSlotRenderer implements SlotView.SlotRenderer {
        canvas.save(GLCanvas.SAVE_FLAG_MATRIX);

        if (rotation != 0) {
            canvas.translate(width / 2, height / 2);
            canvas.rotate(rotation, 0, 0, 1);
            canvas.translate(-width / 2, -height / 2);
            if (((rotation % 90) & 1) != 0) {
                int temp = height;
                height = width;