Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b410a9c authored by Leon Scroggins's avatar Leon Scroggins Committed by Automerger Merge Worker
Browse files

Merge "Fix setShadowLayer + drawTextOnPath" into rvc-dev am: 7e17bc64

Change-Id: Ib8bccc92bd3d7636ed38a1a98068d35ff21b4682
parents 61034598 7e17bc64
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -789,9 +789,11 @@ void SkiaCanvas::drawLayoutOnPath(const minikin::Layout& layout, float hOffset,
        xform[i - start].fTx = pos.x() - tan.y() * y - halfWidth * tan.x();
        xform[i - start].fTy = pos.y() + tan.x() * y - halfWidth * tan.y();
    }
    auto* finalCanvas = this->asSkCanvas();

    sk_sp<SkTextBlob> textBlob(builder.make());

    apply_looper(&paintCopy, [&](const SkPaint& p) {
        finalCanvas->drawTextBlob(builder.make(), 0, 0, paintCopy);
        mCanvas->drawTextBlob(textBlob, 0, 0, p);
    });
}