diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-21 13:39:12 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-21 13:40:39 +0200 |
commit | 79c0f7dfb063b5d29dc4547d37efbcb86a89fdac (patch) | |
tree | ebbc32b22b31e675ebb5b992a20d569d3bfa8b9e /drivers/cga.h | |
parent | Add IDT (diff) | |
download | kernel.cpp-79c0f7dfb063b5d29dc4547d37efbcb86a89fdac.tar.xz |
Call global constructors
Diffstat (limited to 'drivers/cga.h')
-rw-r--r-- | drivers/cga.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/cga.h b/drivers/cga.h index f0ca412..f4dfb3c 100644 --- a/drivers/cga.h +++ b/drivers/cga.h @@ -35,7 +35,7 @@ public: CGA_COLOR_WHITE = 15, }; - CGA(Colour fg = CGA_COLOR_BLACK, Colour bg = CGA_COLOR_LIGHT_GREY, uint32_t address = 0xB8000); + CGA(); ~CGA() = default; void set_colour(Colour fg, Colour bg); @@ -58,8 +58,8 @@ private: const size_t max_columns = 80, max_rows = 25; size_t column = 0, row = 0; - Colour colour_fg; - Colour colour_bg; + Colour colour_fg = CGA_COLOR_BLACK; + Colour colour_bg = CGA_COLOR_LIGHT_GREY; Entry* buffer; |