!956 修复特定颜色下绘制背景色问题

Merge pull request !956 from chy/m1
This commit is contained in:
openharmony_ci
2022-05-31 11:09:41 +00:00
committed by Gitee
+3 -2
View File
@@ -78,8 +78,9 @@ void SurfaceDraw::DrawBackgroundColor(std::shared_ptr<RSSurfaceNode> surfaceNode
if (rsSurface == nullptr) {
return;
}
canvas->clear(bkgColor);
frame->SetDamageRegion(0, 0, width, height);
SkPaint bkgPaint;
bkgPaint.setColor(bkgColor);
canvas->drawRect(SkRect::MakeXYWH(0.0, 0.0, width, height), bkgPaint);
rsSurface->FlushFrame(frame);
}