1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:57:44 +00:00

Kernel: Allow VGA-capable graphics adapters to exist with legacy VGA

If we have a VGA-capable graphics adapter that we support, we should
prefer it over any legacy VGA because we wouldn't use it in legacy VGA
mode in this case.

This solves the problem where we would only use the legacy VGA card
when both a legacy VGA card as well as a VGA-mode capable adapter is
present.
This commit is contained in:
Tom 2021-06-16 19:35:11 -06:00 committed by Andreas Kling
parent ddc855ffcd
commit fb488e2b27
6 changed files with 92 additions and 43 deletions

View file

@ -45,8 +45,6 @@ public:
void activate_graphical_mode();
private:
RefPtr<GraphicsDevice> determine_graphics_device(PCI::Address address, PCI::ID id) const;
NonnullRefPtrVector<GraphicsDevice> m_graphics_devices;
NonnullOwnPtr<Region> m_vga_font_region;
RefPtr<Graphics::Console> m_console;