fix: vertical grid line over-draw

This commit is contained in:
leo 2024-09-11 10:23:20 +08:00
parent 2d611cf988
commit f4f0fe788b
No known key found for this signature in database

View file

@ -111,12 +111,9 @@ namespace SourceGit.Views
var border = this.FindResource("Brush.Border0") as IBrush;
var pen = new Pen(border, 0.4);
for (int i = 1; i < 6; i++)
{
context.DrawLine(pen, new Point(0, i * 32), new Point(256, i * 32));
for (int j = 1; j < 8; j++)
context.DrawLine(pen, new Point(j * 32, 0), new Point(j * 32, 192));
context.DrawLine(pen, new Point(0, i * 32), new Point(256, i * 32));
}
}
// Palette picker