aboutsummaryrefslogtreecommitdiff
path: root/vga.cc
diff options
context:
space:
mode:
Diffstat (limited to 'vga.cc')
-rw-r--r--vga.cc4
1 files changed, 2 insertions, 2 deletions
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