MCPcopy Create free account
hub / github.com/audacity/audacity / Erase

Method Erase

src/widgets/Overlay.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void Overlay::Erase(wxDC &dc, wxDC &src)
30{
31 wxRect rect(dc.GetSize());
32 rect.Intersect(src.GetSize());
33 auto smallRect(GetRectangle(src.GetSize()).first);
34 rect.Intersect(smallRect);
35 if (!rect.IsEmpty())
36 dc.Blit(rect.x, rect.y, rect.width, rect.height,
37 &src, rect.x, rect.y);
38}

Callers 1

DrawOverlaysMethod · 0.45

Calls 3

IntersectMethod · 0.80
GetSizeMethod · 0.45
IsEmptyMethod · 0.45

Tested by

no test coverage detected