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

Commit 658c159c authored by Mark Harman's avatar Mark Harman
Browse files

Fix diagonals grid not displaying properly in portrait orientation.

parent 791609d1
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -956,10 +956,9 @@ public class DrawPreview {
                canvas.drawLine(0.0f, 0.0f, canvas.getHeight() - 1.0f, canvas.getHeight() - 1.0f, p);
                canvas.drawLine(canvas.getHeight() - 1.0f, 0.0f, 0.0f, canvas.getHeight() - 1.0f, p);
                int diff = canvas.getWidth() - canvas.getHeight();
                if (diff > 0) {
                // n.b., diff is -ve in portrait orientation
                canvas.drawLine(diff, 0.0f, diff + canvas.getHeight() - 1.0f, canvas.getHeight() - 1.0f, p);
                canvas.drawLine(diff + canvas.getHeight() - 1.0f, 0.0f, diff, canvas.getHeight() - 1.0f, p);
                }
                break;
        }
    }