| 268 | //-------------------------------------------------------------------- |
| 269 | template <class RenBuf> |
| 270 | void copy_from(const RenBuf& src) |
| 271 | { |
| 272 | unsigned h = height(); |
| 273 | if (src.height() < h) |
| 274 | h = src.height(); |
| 275 | |
| 276 | unsigned l = stride_abs(); |
| 277 | if (src.stride_abs() < l) |
| 278 | l = src.stride_abs(); |
| 279 | |
| 280 | l *= sizeof(T); |
| 281 | |
| 282 | unsigned y; |
| 283 | unsigned w = width(); |
| 284 | for (y = 0; y < h; y++) |
| 285 | { |
| 286 | std::memcpy(row_ptr(0, y, w), src.row_ptr(y), l); |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | //-------------------------------------------------------------------- |
| 291 | void clear(T value) |
nothing calls this directly
no test coverage detected