Kernel: Much improved BochsVGA (BXVGA) support.

Instead of cowboy-calling the VESA BIOS in the bootloader, find the emulator
VGA adapter by scanning the PCI bus. Then set up the desired video mode by
sending device commands.
This commit is contained in:
Andreas Kling 2019-02-06 10:17:26 +01:00
commit 731fc5a7c8
Notes: sideshowbarker 2024-07-19 15:51:15 +09:00
16 changed files with 298 additions and 114 deletions

View file

@ -10,6 +10,8 @@ public:
WSScreen(RGBA32*, unsigned width, unsigned height);
~WSScreen();
void set_resolution(int width, int height);
int width() const { return m_width; }
int height() const { return m_height; }
RGBA32* scanline(int y);