diff options
Diffstat (limited to 'Source/Kernel/Devices/Display/GraphicDisplay.proto.h')
-rw-r--r-- | Source/Kernel/Devices/Display/GraphicDisplay.proto.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/Kernel/Devices/Display/GraphicDisplay.proto.h b/Source/Kernel/Devices/Display/GraphicDisplay.proto.h index 35bbdae..9608ada 100644 --- a/Source/Kernel/Devices/Display/GraphicDisplay.proto.h +++ b/Source/Kernel/Devices/Display/GraphicDisplay.proto.h @@ -10,8 +10,22 @@ extern u32int consoleColor[16]; #define C_FONT_HEIGHT 16 class GraphicDisplay : public Display { + struct { + int line, col; + u32int buff[C_FONT_WIDTH][C_FONT_HEIGHT]; + } m_csrBuff; + + //Cursor handling + void getCsrBuff(); + void putCsrBuff(); + void drawCsr(); + public: + GraphicDisplay() { m_csrBuff.line = -1; m_csrBuff.col = -1; } + virtual void putChar(u16int line, u16int col, WChar c, u8int color); + virtual void drawChar(u16int line, u16int col, WChar c, u8int color); + virtual void moveCursor(u16int line, u16int col); }; |