Browse Source

Fix you not being able to draw on topmost and leftmost pixels

Equbuxu 3 years ago
parent
commit
9ba8022598
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ChunkyImageLib/Operations/BresenhamLineOperation.cs

+ 1 - 1
src/ChunkyImageLib/Operations/BresenhamLineOperation.cs

@@ -37,7 +37,7 @@ internal class BresenhamLineOperation : IDrawOperation
 
     public HashSet<VecI> FindAffectedChunks()
     {
-        RectI bounds = RectI.FromTwoPoints(from, to);
+        RectI bounds = RectI.FromTwoPoints(from, to + new VecI(1));
         return OperationHelper.FindChunksTouchingRectangle(bounds, ChunkyImage.FullChunkSize);
     }