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

Commit 8971760f authored by Ana Krulec's avatar Ana Krulec
Browse files

Fix creating of RRect in SkiaRE

Concat already moves of the layer to the correct position, so the current
origin is already moved. When we draw RRect,  we need to draw something
at position 0, 0, size of layer, which is stored in layer->geometry.boundaries.

Test: Open DialogActivity application. Observer the correct position.
Bug: 172421694
Change-Id: I9964db2a16cf31e5bb44ba82fd7d151db28b3588
parent 2070050c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -738,7 +738,7 @@ inline SkRect SkiaGLRenderEngine::getSkRect(const Rect& rect) {
}

inline SkRRect SkiaGLRenderEngine::getRoundedRect(const LayerSettings* layer) {
    const auto rect = getSkRect(layer->geometry.roundedCornersCrop);
    const auto rect = getSkRect(layer->geometry.boundaries);
    const auto cornerRadius = layer->geometry.roundedCornersRadius;
    return SkRRect::MakeRectXY(rect, cornerRadius, cornerRadius);
}