diff options
| -rw-r--r-- | services/surfaceflinger/Layer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 7965245823..1142df8460 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -1804,7 +1804,8 @@ Layer::RoundedCornerState Layer::getRoundedCornerState() const { } } const float radius = getDrawingState().cornerRadius; - return radius > 0 ? RoundedCornerState(getBounds(), radius) : RoundedCornerState(); + return radius > 0 ? RoundedCornerState(getCrop(getDrawingState()).toFloatRect(), radius) + : RoundedCornerState(); } void Layer::commitChildList() { |