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

Function GetBit

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

Source from the content-addressed store, hash-verified

48}
49
50static bool GetBit(const uint8_t data[], size_t x, size_t y, size_t width) noexcept
51{
52 const size_t position = y * width + x;
53 return (data[position / 8] & (1 << (7 - (x % 8)))) != 0;
54}
55
56static void SetBit(uint8_t data[], size_t x, size_t y, size_t width) noexcept
57{

Callers 1

ScaleDataArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected