Windows 0.3.4 connection resilience and fixed-grid source delta; no private history or other platform changes
This commit is contained in:
@@ -193,7 +193,11 @@ internal static class ChartAxis
|
||||
{
|
||||
var y = plot.Bottom - plot.Height * i / 2;
|
||||
g.DrawLine(grid, plot.Left, y, plot.Right, y);
|
||||
if (denseSpeed ? i == 0 : !compactAxis || i == 0) TextRenderer.DrawText(g, axis.Tick(maximum * i / 2), font, new Rectangle(0, (int)y - fontHeight / 2, (int)left - 4, fontHeight), Brand.Muted, PaintFlags | TextFormatFlags.Right | TextFormatFlags.NoPadding);
|
||||
// A fitted chart can be only a few text lines tall. Keep its
|
||||
// explicit upper-limit metadata legible instead of drawing a
|
||||
// redundant zero label across that second line in the gutter.
|
||||
var drawTick = denseSpeed ? i == 0 && y - fontHeight / 2 >= fontHeight * 2 + 2 * scale : !compactAxis || i == 0;
|
||||
if (drawTick) TextRenderer.DrawText(g, axis.Tick(maximum * i / 2), font, new Rectangle(0, (int)y - fontHeight / 2, (int)left - 4, fontHeight), Brand.Muted, PaintFlags | TextFormatFlags.Right | TextFormatFlags.NoPadding);
|
||||
}
|
||||
for (var i = 0; i <= 6; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user