MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / SetBit

Function SetBit

src/openrct2-ui/CursorRepository.cpp:56–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56static void SetBit(uint8_t data[], size_t x, size_t y, size_t width) noexcept
57{
58 size_t position = y * width + x;
59 data[position / 8] |= (1 << (7 - (position % 8)));
60}
61
62static void DrawRect(uint8_t data[], size_t x, size_t y, size_t width, size_t scale) noexcept
63{

Callers 1

DrawRectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected