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

Commit a2586467 authored by Owen Lin's avatar Owen Lin
Browse files

Fix a UI bug in rendering a rotated image.

Change-Id: I14f9f74c5d810dfbb56151722c7f604522fea938
parent 68cf1645
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;