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

Method Update

Kernel/src/videoconsole.cpp:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void VideoConsole::Update(){
27 Video::DrawRect(x,y,width, height, 32, 32, 32);
28 for(int i = 0; i < heightInCharacters; i++){
29 for(int j = 0; j < widthInCharacters; j++){
30 ConsoleCharacter c = characterBuffer[i*widthInCharacters + j];
31 if(c.c == 0) continue;
32 Video::DrawChar(c.c, x + j * 8, y + i * 8, c.r, c.g, c.b);
33 }
34 }
35}
36
37void VideoConsole::Print(char c, uint8_t r, uint8_t g, uint8_t b){
38 switch(c){

Callers 2

WriteFFunction · 0.45
KernelPanicFunction · 0.45

Calls 2

DrawRectFunction · 0.70
DrawCharFunction · 0.70

Tested by

no test coverage detected