| 74 | } |
| 75 | |
| 76 | void Overlay::captureOverlappedArea(she::Surface* screen) |
| 77 | { |
| 78 | if (!m_surface) |
| 79 | return; |
| 80 | |
| 81 | if (!m_overlap) |
| 82 | m_overlap = she::instance()->createSurface(m_surface->width(), m_surface->height()); |
| 83 | |
| 84 | she::SurfaceLock lock(m_overlap); |
| 85 | screen->blitTo(m_overlap, m_pos.x, m_pos.y, 0, 0, |
| 86 | m_overlap->width(), m_overlap->height()); |
| 87 | } |
| 88 | |
| 89 | void Overlay::restoreOverlappedArea(she::Surface* screen) |
| 90 | { |
no test coverage detected