mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2025-02-18 19:09:32 +00:00
!3718 去除leashWindow裁剪限制
Merge pull request !3718 from chenhaiying/master
This commit is contained in:
commit
35a0efccbf
@ -1559,13 +1559,10 @@ void RSUniRenderVisitor::ProcessSurfaceRenderNode(RSSurfaceRenderNode& node)
|
||||
RRect absClipRRect = RRect(absBounds, property.GetCornerRadius());
|
||||
RSPropertiesPainter::DrawShadow(property, *canvas_, &absClipRRect);
|
||||
|
||||
// Fix bug that when AppWindow has shadow set by config.xml cannot be displayed for LEASH_WINDOW_NODE has clipped canvas.
|
||||
if (node.GetSurfaceNodeType() != RSSurfaceNodeType::LEASH_WINDOW_NODE) {
|
||||
if (!property.GetCornerRadius().IsZero()) {
|
||||
canvas_->clipRRect(RSPropertiesPainter::RRect2SkRRect(absClipRRect), true);
|
||||
} else {
|
||||
canvas_->clipRect(SkRect::MakeWH(property.GetBoundsWidth(), property.GetBoundsHeight()));
|
||||
}
|
||||
if (!property.GetCornerRadius().IsZero()) {
|
||||
canvas_->clipRRect(RSPropertiesPainter::RRect2SkRRect(absClipRRect), true);
|
||||
} else {
|
||||
canvas_->clipRect(SkRect::MakeWH(property.GetBoundsWidth(), property.GetBoundsHeight()));
|
||||
}
|
||||
|
||||
RSPropertiesPainter::DrawBackground(property, *canvas_);
|
||||
|
Loading…
x
Reference in New Issue
Block a user