| 573 | } |
| 574 | |
| 575 | static void drawImageSolid(const RenderTarget& rt, const Ui::Point& pos, const ImageId& image, PaletteIndex_t paletteIndex) |
| 576 | { |
| 577 | PaletteMap::Buffer<PaletteMap::kDefaultSize> palette; |
| 578 | std::fill(palette.begin(), palette.end(), paletteIndex); |
| 579 | palette[0] = 0; |
| 580 | |
| 581 | // Set the image primary flag to tell drawImagePaletteSet to recolour with the palette (Colour::black is not actually used) |
| 582 | drawImagePaletteSet(rt, pos, image.withPrimary(Colour::black), PaletteMap::View{ palette }, {}); |
| 583 | } |
| 584 | |
| 585 | // 0x004474BA |
| 586 | // ax: left |
no test coverage detected