MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / panel_write_pixel

Function panel_write_pixel

core/panel.c:686–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684}
685
686static inline void panel_write_pixel(uint8_t (*pixel)[3], uint32_t bgr666) {
687 assert(bgr666 <= 0x3FFFF);
688 (*pixel)[PANEL_RAM_RED] = bgr666 & 0x3F;
689 (*pixel)[PANEL_RAM_GREEN] = bgr666 >> 6 & 0x3F;
690 (*pixel)[PANEL_RAM_BLUE] = bgr666 >> 12;
691}
692
693static void panel_write_pixel_row_oob(panel_mem_ptr_t* memPtr, uint32_t bgr666);
694

Callers 3

panel_write_pixel_rowFunction · 0.85
panel_write_pixel_colFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected