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

Function DrawRect

Kernel/src/video.cpp:175–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
177
178 for(unsigned i = 0; i < height; i++){
179 for(unsigned j = 0; j < width; j++){
180 ((uint32_t*)videoMemory)[((i + y) * screenWidth) + j + x] = colour;
181 }
182 }
183 }
184
185 void DrawChar(char c, unsigned int x, unsigned int y, uint8_t r, uint8_t g, uint8_t b) {
186 uint32_t colour = r << 16 | g << 8 | b;

Callers 15

kmainFunction · 0.70
UpdateMethod · 0.70
KernelPanicFunction · 0.70
PaintMethod · 0.50
mainFunction · 0.50
ScrollFunction · 0.50
PaintFunction · 0.50
OnPaintFunction · 0.50
PaintMethod · 0.50
mainFunction · 0.50
OnWindowPaintFunction · 0.50
PaintMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected