MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / drawImageSolid

Function drawImageSolid

src/OpenLoco/src/Graphics/SoftwareDrawingContext.cpp:575–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

drawImageSolidMethod · 0.85

Calls 4

drawImagePaletteSetFunction · 0.85
withPrimaryMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected