mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-13 11:20:31 +00:00
Merge pull request #6638 from EVAST9919/path-pixels
Fix `Path` may have missing pixels during rasterization
This commit is contained in:
@@ -291,13 +291,13 @@ namespace osu.Framework.Graphics.Lines
|
||||
if (progress < 0)
|
||||
{
|
||||
// expand segment backwards
|
||||
segmentToDraw = new Line(closest, segmentToDraw.Value.EndPoint);
|
||||
segmentToDraw = new Line(segments[i].EndPoint, segmentToDraw.Value.EndPoint);
|
||||
modifiedLocation = SegmentStartLocation.Outside;
|
||||
}
|
||||
else if (progress > 1)
|
||||
{
|
||||
// or forward
|
||||
segmentToDraw = new Line(segmentToDraw.Value.StartPoint, closest);
|
||||
segmentToDraw = new Line(segmentToDraw.Value.StartPoint, segments[i].EndPoint);
|
||||
}
|
||||
}
|
||||
else // Otherwise draw the expanded segment
|
||||
|
||||
Reference in New Issue
Block a user