MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / DrawPixel

Function DrawPixel

Kernel/src/video.cpp:170–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 }
169
170 void DrawPixel(unsigned int x, unsigned int y, uint8_t r, uint8_t g, uint8_t b){
171 uint32_t colour = r << 16 | g << 8 | b;
172 ((uint32_t*)videoMemory)[(y * screenWidth) + x] = colour;
173 }
174
175 void DrawRect(unsigned int x, unsigned int y, unsigned int width, unsigned int height, uint8_t r, uint8_t g, uint8_t b){
176 uint32_t colour = r << 16 | g << 8 | b;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected