diff options
Diffstat (limited to 'arch/x86/io/VGADisplay.cpp')
| -rw-r--r-- | arch/x86/io/VGADisplay.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86/io/VGADisplay.cpp b/arch/x86/io/VGADisplay.cpp index ceb4862..5075351 100644 --- a/arch/x86/io/VGADisplay.cpp +++ b/arch/x86/io/VGADisplay.cpp @@ -1,4 +1,5 @@ #include "VGADisplay.h" +#include "VGADisplayInfo.h" VGADisplay out::display; @@ -137,3 +138,12 @@ bool VGADisplay::printChar(const char &c) } } }; + +void VGADisplay::clearScreen() +{ + xCurr = yCurr = 0; + videoMem = (dchar *)VGADisplayInfo::videoMemAddr; + uint16 maxPos = VGADisplayInfo::height * VGADisplayInfo::width * 2; + + for(uint16 pos = 0; pos < maxPos; pos++) *this << ' '; +}; |
