MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / _GetP

Function _GetP

xdevice.cpp:77–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75INLINE void _SetRGB(byte *pb, int r, int g, int b)
76 { *pb = b; *(pb+1) = g; *(pb+2) = r; }
77INLINE KV _GetP(CONST byte *pb)
78 { return (*pb << 16) | (*(pb+1) << 8) | *(pb+2); }
79INLINE KV _GetXY(CONST Bitmap *b, int x, int y)
80 { return _GetP(_PbXY(b, x, y)); }
81INLINE void _GetRGB(CONST byte *pb, int *r, int *g, int *b)

Callers 1

_GetXYFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected