| 56 | } |
| 57 | |
| 58 | bool Video::draw(fl::u32 now, fl::span<CRGB> leds) { |
| 59 | if (!mImpl) { |
| 60 | FL_WARN_IF(!mError.empty(), mError.c_str()); |
| 61 | return false; |
| 62 | } |
| 63 | bool ok = mImpl->draw(now, leds); |
| 64 | if (!ok) { |
| 65 | // Interpret not being able to draw as a finished signal. |
| 66 | mFinished = true; |
| 67 | } |
| 68 | return ok; |
| 69 | } |
| 70 | |
| 71 | void Video::draw(DrawContext context) { |
| 72 | if (!mImpl) { |
nothing calls this directly
no test coverage detected