Skip to content

Commit fa3cb6a

Browse files
committed
修复动态笔迹层绘制在静态笔迹层下方
1 parent 3ba099f commit fa3cb6a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/DotNetCampus.AvaloniaInkCanvas/Core/AvaloniaSkiaInkCanvas.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,17 +376,17 @@ public InkCanvasCustomDrawOperation(AvaloniaSkiaInkCanvas inkCanvas, InkBitmapCa
376376
_list = [];
377377
_pathList = [];
378378

379-
foreach (var strokeContext in contextDictionary.Values)
379+
foreach (var skiaStroke in inkCanvas._staticStrokeList)
380380
{
381-
var stroke = strokeContext.Stroke;
382-
383-
var skiaStrokeDrawContext = stroke.CreateDrawContext();
381+
var skiaStrokeDrawContext = skiaStroke.CreateDrawContext();
384382
_pathList.Add(skiaStrokeDrawContext);
385383
}
386384

387-
foreach (var skiaStroke in inkCanvas._staticStrokeList)
385+
foreach (var strokeContext in contextDictionary.Values)
388386
{
389-
var skiaStrokeDrawContext = skiaStroke.CreateDrawContext();
387+
var stroke = strokeContext.Stroke;
388+
389+
var skiaStrokeDrawContext = stroke.CreateDrawContext();
390390
_pathList.Add(skiaStrokeDrawContext);
391391
}
392392

0 commit comments

Comments
 (0)