MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / fixupImage

Method fixupImage

src/doc/cel.cpp:145–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void Cel::fixupImage()
146{
147 // Change the mask color to the sprite mask color
148 if (m_layer && image())
149 image()->setMaskColor(m_layer->sprite()->transparentColor());
150}
151
152} // namespace doc

Callers

nothing calls this directly

Calls 3

transparentColorMethod · 0.80
setMaskColorMethod · 0.45
spriteMethod · 0.45

Tested by

no test coverage detected