| 75 | } |
| 76 | |
| 77 | void VideoConsole::PrintN(const char* str, unsigned n, uint8_t r, uint8_t g, uint8_t b){ |
| 78 | unsigned i = 0; |
| 79 | while (*str && i < n){ |
| 80 | Print(*str++, r, g, b); |
| 81 | i++; |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | void VideoConsole::Scroll(){ |
| 86 | memcpy(characterBuffer,(void*)(characterBuffer + widthInCharacters), widthInCharacters*(heightInCharacters-1)*sizeof(ConsoleCharacter)); |