MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / Video_Get_Pixel

Method Video_Get_Pixel

Source/PC/Graphics_PC.cpp:637–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637uint8 cGraphics_PC::Video_Get_Pixel(uint8* pSi, int16 pX, int16 pY) {
638
639 // 0xA0 Bytes per row
640 pSi += 0xA0 * pY;
641
642 pSi += (pX >> 1);
643
644 if (pX & 1)
645 return (*pSi) & 0x0F;
646
647 return (*pSi) >> 4;
648}
649
650void cGraphics_PC::Video_Put_Pixel(uint8* pDi, uint8 pAl) {
651

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected