mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
Kernel/Graphics: Ensure we set BGR format of bochs-display if supported
Instead of blindly forcing BGR format on the bochs-display device, let's ensure we do that only on QEMU bochs-display and not on VirtualBox graphics adapter too.
This commit is contained in:
parent
de1b649783
commit
38bddca378
2 changed files with 18 additions and 1 deletions
|
@ -25,6 +25,9 @@ class BochsGraphicsAdapter final : public GraphicsDevice
|
|||
AK_MAKE_ETERNAL
|
||||
friend class GraphicsManagement;
|
||||
|
||||
private:
|
||||
TYPEDEF_DISTINCT_ORDERED_ID(u16, IndexID);
|
||||
|
||||
public:
|
||||
static NonnullRefPtr<BochsGraphicsAdapter> initialize(PCI::Address);
|
||||
virtual ~BochsGraphicsAdapter() = default;
|
||||
|
@ -46,6 +49,8 @@ private:
|
|||
|
||||
explicit BochsGraphicsAdapter(PCI::Address);
|
||||
|
||||
IndexID index_id() const;
|
||||
|
||||
void set_safe_resolution();
|
||||
void unblank();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue