| 27 | } |
| 28 | |
| 29 | void 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 | } |
no test coverage detected