MCPcopy Create free account
hub / github.com/DFHack/dfhack / PenArray

Method PenArray

library/modules/Screen.cpp:666–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664 */
665
666PenArray::PenArray(unsigned int bufwidth, unsigned int bufheight)
667 :dimx(bufwidth), dimy(bufheight), static_alloc(false)
668{
669 buffer = new Pen[bufwidth * bufheight];
670 clear();
671}
672
673PenArray::PenArray(unsigned int bufwidth, unsigned int bufheight, void *buf)
674 :dimx(bufwidth), dimy(bufheight), static_alloc(true)

Callers

nothing calls this directly

Calls 1

clearFunction · 0.50

Tested by

no test coverage detected