mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:17:44 +00:00
Kernel/Graphics: Untie Text mode console from VGACompatibleAdapter class
Instead, we can construct this type of object without having to instantiate a VGACompatibleAdapter object first. This can help instantiate such console very early on boot to aid debug issues on bare metal hardware.
This commit is contained in:
parent
c6acf64558
commit
90a194377c
5 changed files with 10 additions and 12 deletions
|
@ -22,7 +22,7 @@ public:
|
|||
};
|
||||
|
||||
public:
|
||||
static NonnullRefPtr<VGAConsole> initialize(const VGACompatibleAdapter&, Mode, size_t width, size_t height);
|
||||
static NonnullRefPtr<VGAConsole> initialize(Mode, size_t width, size_t height);
|
||||
|
||||
virtual bool is_hardware_paged_capable() const override { return false; }
|
||||
virtual bool has_hardware_cursor() const override { return false; }
|
||||
|
@ -31,10 +31,9 @@ public:
|
|||
virtual ~VGAConsole() = default;
|
||||
|
||||
protected:
|
||||
VGAConsole(const VGACompatibleAdapter&, Mode, size_t width, size_t height);
|
||||
VGAConsole(Mode, size_t width, size_t height);
|
||||
|
||||
NonnullOwnPtr<Memory::Region> m_vga_region;
|
||||
NonnullRefPtr<VGACompatibleAdapter> m_adapter;
|
||||
const Mode m_mode;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue