diff options
Diffstat (limited to 'vga.cc')
-rw-r--r-- | vga.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,8 +9,8 @@ constexpr uint16_t vga_entry(unsigned char uc, uint8_t color) { return (uint16_t)uc | (uint16_t)color << 8; } -VGA::VGA(uint32_t address) { - color = vga_entry_color(VGA_COLOR_LIGHT_GREY, VGA_COLOR_BROWN); +VGA::VGA(vga_color fg, vga_color bg, uint32_t address) { + color = vga_entry_color(fg, bg); buffer = (uint16_t *)address; // clear buffer |