ScaledPixelIteratorRGB implementation
| 396 | |
| 397 | // ScaledPixelIteratorRGB implementation |
| 398 | inline void ScaledPixelIteratorRGB::advance() FL_NOEXCEPT { |
| 399 | if (!mPixels) { |
| 400 | mHasValue = false; |
| 401 | return; |
| 402 | } |
| 403 | |
| 404 | if (mPixels->has(1)) { |
| 405 | u8 b0, b1, b2; |
| 406 | mPixels->loadAndScaleRGB(&b0, &b1, &b2); |
| 407 | mCurrent = array<u8, 3>{{b0, b1, b2}}; // Wire order bytes |
| 408 | mPixels->stepDithering(); |
| 409 | mPixels->advanceData(); |
| 410 | mHasValue = true; |
| 411 | } else { |
| 412 | mHasValue = false; |
| 413 | } |
| 414 | } |
| 415 | |
| 416 | // ScaledPixelIteratorRGBW implementation |
| 417 | inline void ScaledPixelIteratorRGBW::advance() FL_NOEXCEPT { |
nothing calls this directly
no test coverage detected