| 114 | //-------------------------------------------------------------------- |
| 115 | template <class RenBuf> |
| 116 | void copy_from(const RenBuf& src) |
| 117 | { |
| 118 | unsigned h = height(); |
| 119 | if (src.height() < h) |
| 120 | h = src.height(); |
| 121 | |
| 122 | unsigned l = stride_abs(); |
| 123 | if (src.stride_abs() < l) |
| 124 | l = src.stride_abs(); |
| 125 | |
| 126 | l *= sizeof(T); |
| 127 | |
| 128 | unsigned y; |
| 129 | unsigned w = width(); |
| 130 | for (y = 0; y < h; y++) |
| 131 | { |
| 132 | std::memcpy(row_ptr(0, y, w), src.row_ptr(y), l); |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | //-------------------------------------------------------------------- |
| 137 | void clear(T value) |
nothing calls this directly
no test coverage detected