Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlm committed Nov 10, 2024
1 parent a03c8ec commit 2c4c60a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ namespace Consolonia.Core.Drawing.PixelBufferImplementation
public class PixelBuffer : IEnumerable<Pixel>
{
private readonly Pixel[,] _buffer;
private PixelBufferCoordinate _caretPosition;

public PixelBuffer(ushort width, ushort height)
{
Width = width;
Height = height;
_buffer = new Pixel[width, height];
_caretPosition = new PixelBufferCoordinate(0, 0);
}

public ushort Width { get; }
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Consolonia.Core.Tests/PixelTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class PixelTests
public void ConstructorCaret()
{
var pixel = new Pixel(true);
Assert.That(pixel.IsCaret == true);
Assert.That(pixel.IsCaret);
Assert.That(pixel.Foreground == new PixelForeground());
Assert.That(pixel.Background == new PixelBackground());
}
Expand Down

0 comments on commit 2c4c60a

Please sign in to comment.