mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-21 04:25:28 -04:00
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user