| 42 | } |
| 43 | |
| 44 | void TestBitmap::setPixelsRow(int y, const Color* pixels) { |
| 45 | auto* ptr = getPixelPtr(0, y); |
| 46 | |
| 47 | std::memcpy(ptr, pixels, static_cast<size_t>(_width) * sizeof(Color)); |
| 48 | } |
| 49 | |
| 50 | void TestBitmap::setOnLockCallback(Valdi::Function<void()>&& onLock) { |
| 51 | _onLock = std::move(onLock); |