diff options
author | Alexis211 <alexis211@gmail.com> | 2009-11-11 10:10:27 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-11-11 10:10:27 +0100 |
commit | 35bab823d752686709b62be75e8305cbd7549e90 (patch) | |
tree | 02de9cc4a89ed269ac62413c7f48f52bcb314477 /Source/Kernel/Devices/Display/GraphicDisplay.proto.h | |
parent | 7292b995d4f7bfea699e44ed335d7cc1616c1132 (diff) | |
download | Melon-35bab823d752686709b62be75e8305cbd7549e90.tar.gz Melon-35bab823d752686709b62be75e8305cbd7549e90.zip |
More work
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); }; |