diff options
Diffstat (limited to 'vga.h')
-rw-r--r-- | vga.h | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -23,15 +23,11 @@ public: VGA_COLOR_WHITE = 15, }; - VGA(vga_color fg = VGA_COLOR_BLACK, vga_color bg = VGA_COLOR_LIGHT_GREY, - uint32_t address = 0xB8000); + VGA(vga_color fg = VGA_COLOR_BLACK, vga_color bg = VGA_COLOR_LIGHT_GREY, uint32_t address = 0xB8000); ~VGA() = default; - void put_char(char c, size_t x, size_t y, uint8_t color = 0); void write(char c) override; - void write(const String &data) override; - void write(int n) override; - void write(unsigned int n) override; + void write(ViewIterator& iter) override; void set_color(vga_color fg, vga_color bg) { color = (fg | bg << 4); } @@ -39,5 +35,5 @@ private: const size_t max_columns = 80, max_rows = 25; size_t column = 0, row = 0; uint8_t color; - uint16_t *buffer; + uint16_t* buffer; }; |