| 120 | } |
| 121 | |
| 122 | AnimatedGifTask::AnimatedGifTask(Graphics::Surface& surface, const void* data, size_t length, bool inFlash) |
| 123 | : surface(surface) |
| 124 | { |
| 125 | auto ptr = static_cast<uint8_t*>(const_cast<void*>(data)); |
| 126 | if(inFlash) { |
| 127 | gif.openFLASH(ptr, length, draw); |
| 128 | } else { |
| 129 | gif.open(ptr, length, draw); |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | void AnimatedGifTask::loop() |
| 134 | { |