| 63 | } |
| 64 | |
| 65 | void Blitter_8bppBase::CopyToBuffer(const void *video, void *dst, int width, int height) |
| 66 | { |
| 67 | uint8_t *udst = (uint8_t *)dst; |
| 68 | const uint8_t *src = (const uint8_t *)video; |
| 69 | |
| 70 | for (; height > 0; height--) { |
| 71 | std::copy_n(src, width, udst); |
| 72 | src += _screen.pitch; |
| 73 | udst += width; |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | void Blitter_8bppBase::CopyImageToBuffer(const void *video, void *dst, int width, int height, int dst_pitch) |
| 78 | { |
no outgoing calls
no test coverage detected