aboutsummaryrefslogtreecommitdiff
path: root/vga.cc
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2021-02-03 15:58:34 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2021-02-03 15:58:34 +0200
commitca8ea6f6abe9826ab6817b2c37ff78bb9758360d (patch)
tree5c707d465996a52cc681503a11510a35218054f1 /vga.cc
parentPrint some multiboot2 information (diff)
downloadkernel.cpp-ca8ea6f6abe9826ab6817b2c37ff78bb9758360d.tar.xz
Update readme with required packages
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