MCPcopy Create free account
hub / github.com/SimHacker/micropolis / Fill

Method Fill

MicropolisCore/src/CellEngine/src/cellengine.cpp:611–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609
610
611void CellEngine::Fill(
612 Byte c)
613{
614 if (!OnScreen()) {
615 return;
616 }
617
618 Byte *image = frontMem;
619
620 long yy;
621 for (yy = 0;
622 yy < height;
623 yy++, image += screenRowBytes) {
624 long xx;
625 for (xx = 0;
626 xx < width;
627 xx++) {
628 image[xx] = c;
629 }
630 }
631}
632
633
634void CellEngine::FillRect(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected