From ca8ea6f6abe9826ab6817b2c37ff78bb9758360d Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 3 Feb 2021 15:58:34 +0200 Subject: Update readme with required packages --- vga.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vga.cc') diff --git a/vga.cc b/vga.cc index b4c9673..a696d77 100644 --- a/vga.cc +++ b/vga.cc @@ -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 -- cgit v1.2.1