Skip to content

Commit

Permalink
fix variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlm committed Dec 13, 2024
1 parent 70c0f3c commit 16e007b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/Consolonia.Core/Drawing/DrawingContextImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ private void FillRectangleWithBrush(IBrush brush, IPen pen, Rect r)
}
}

private static char[][] _lineChars =
private static char[][] EdgeChars =
[
// LineStyle=Edge
['▕', '▁', '▏', '▔'],
Expand All @@ -506,7 +506,7 @@ private void FillRectangleWithBrush(IBrush brush, IPen pen, Rect r)


// top left, top right, bottom right, bottom left,
private static char[][] _cornerChars =
private static char[][] CornerChars =
{
// LineStyle=Edge we don't draw chars for edge corners
[' ', ' ', ' ', ' ' ],
Expand Down Expand Up @@ -578,24 +578,24 @@ private void DrawEdgeLine(Line line, RectangleLinePosition linePosition, LineSty
switch (linePosition)
{
case RectangleLinePosition.Left:
startSymbol = new SimpleSymbol(_cornerChars[iStyle][TopLeft]);
middleSymbol = new SimpleSymbol(_lineChars[iStyle][(int)RectangleLinePosition.Left]);
endSymbol = new SimpleSymbol(_cornerChars[iStyle][BottomLeft]);
startSymbol = new SimpleSymbol(CornerChars[iStyle][TopLeft]);
middleSymbol = new SimpleSymbol(EdgeChars[iStyle][(int)RectangleLinePosition.Left]);
endSymbol = new SimpleSymbol(CornerChars[iStyle][BottomLeft]);
break;
case RectangleLinePosition.Top:
startSymbol = new SimpleSymbol(_cornerChars[iStyle][TopLeft]);
middleSymbol = new SimpleSymbol(_lineChars[iStyle][(int)RectangleLinePosition.Top]);
endSymbol = new SimpleSymbol(_cornerChars[iStyle][TopRight]);
startSymbol = new SimpleSymbol(CornerChars[iStyle][TopLeft]);
middleSymbol = new SimpleSymbol(EdgeChars[iStyle][(int)RectangleLinePosition.Top]);
endSymbol = new SimpleSymbol(CornerChars[iStyle][TopRight]);
break;
case RectangleLinePosition.Right:
startSymbol = new SimpleSymbol(_cornerChars[iStyle][TopRight]);
middleSymbol = new SimpleSymbol(_lineChars[iStyle][(int)RectangleLinePosition.Right]);
endSymbol = new SimpleSymbol(_cornerChars[iStyle][BottomRight]);
startSymbol = new SimpleSymbol(CornerChars[iStyle][TopRight]);
middleSymbol = new SimpleSymbol(EdgeChars[iStyle][(int)RectangleLinePosition.Right]);
endSymbol = new SimpleSymbol(CornerChars[iStyle][BottomRight]);
break;
case RectangleLinePosition.Bottom:
startSymbol = new SimpleSymbol(_cornerChars[iStyle][BottomLeft]);
middleSymbol = new SimpleSymbol(_lineChars[iStyle][(int)RectangleLinePosition.Bottom]);
endSymbol = new SimpleSymbol(_cornerChars[iStyle][BottomRight]);
startSymbol = new SimpleSymbol(CornerChars[iStyle][BottomLeft]);
middleSymbol = new SimpleSymbol(EdgeChars[iStyle][(int)RectangleLinePosition.Bottom]);
endSymbol = new SimpleSymbol(CornerChars[iStyle][BottomRight]);
break;
default:
throw new NotImplementedException("This shouldn't happen");
Expand Down

0 comments on commit 16e007b

Please sign in to comment.