| 300 | } |
| 301 | |
| 302 | void ImageRoll::DrawBitmap(wxDC &dc, wxBitmap &bitmap, |
| 303 | int x, int y, int logicalFunc) |
| 304 | { |
| 305 | auto func = static_cast< wxRasterOperationMode >( logicalFunc ); |
| 306 | if (func == wxCOPY) |
| 307 | dc.DrawBitmap(bitmap, x, y); |
| 308 | else { |
| 309 | wxMemoryDC memDC; |
| 310 | memDC.SelectObject(bitmap); |
| 311 | dc.Blit(x, y, bitmap.GetWidth(), bitmap.GetHeight(), |
| 312 | &memDC, 0, 0, func); |
| 313 | } |
| 314 | } |
| 315 | |
| 316 | void ImageRoll::Draw(wxDC &dc, wxRect rect) |
| 317 | { |
no test coverage detected