1
Fork 0
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:
Liav A 2021-09-27 10:37:15 +03:00 committed by Andreas Kling
parent de1b649783
commit 38bddca378
2 changed files with 18 additions and 1 deletions

View file

@ -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();