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

Function _IbXY

xdevice.cpp:71–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69// Functions to set or get a pixel within a 24 bit color bitmap.
70
71INLINE long _IbXY(CONST Bitmap *b, int x, int y)
72 { return y*(b->clRow << 2) + (x * cbPixelK); }
73INLINE byte *_PbXY(CONST Bitmap *b, int x, int y)
74 { return &(b->rgb)[_IbXY(b, x, y)]; }
75INLINE void _SetRGB(byte *pb, int r, int g, int b)

Callers 1

_PbXYFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected