Skip to content

Commit 8bb6407

Browse files
committed
improve comments
1 parent 4508288 commit 8bb6407

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/ImageSharp.Drawing/Shapes/Rasterization/PolygonScanner.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,10 @@ private void SkipEdgesBeforeMinY()
139139
int i0 = 1;
140140
int i1 = 0;
141141

142-
// Do fake scans for the lines that start before minY. belonging to edge start and endpoints before minY
143-
// Only "scan" at start edge positions (defined by values in sorted0) and end positions (defined by values in sorted1).
144-
// Walk both lists simultaneously following "merge sort" logic.
142+
// Do fake scans of the lines that start before minY.
143+
// Instead of fake scanning at every possible subpixel Y location,
144+
// only "scan" at start edge Y positions (defined by values in sorted0) and end Y positions (defined by values in sorted1).
145+
// Walk the two lists simultaneously following mergesort logic.
145146
while (this.SubPixelY < this.minY)
146147
{
147148
this.EnterEdges();

0 commit comments

Comments
 (0)