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

Method set_tile

library/modules/Screen.cpp:704–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702}
703
704void PenArray::set_tile(unsigned int x, unsigned int y, Screen::Pen pen)
705{
706 if (x < dimx && y < dimy)
707 buffer[(y * dimx) + x] = pen;
708}
709
710void PenArray::draw(unsigned int x, unsigned int y, unsigned int width, unsigned int height,
711 unsigned int bufx, unsigned int bufy)

Callers 4

dfhack_penarray_set_tileFunction · 0.80
GetBlockListFunction · 0.80
GetPartialPlantRawsFunction · 0.80
GetLanguageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected