| 24 | } |
| 25 | |
| 26 | void 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 | |
| 37 | void VideoConsole::Print(char c, uint8_t r, uint8_t g, uint8_t b){ |
| 38 | switch(c){ |
no test coverage detected