1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

Kernel/Graphics: Force BGR format when modesetting the bochs-display

By default bochs-display uses the BGR format, but for future-proof
solution, let's force it explicitly to use that format.
This commit is contained in:
Liav A 2021-09-27 08:46:41 +03:00 committed by Andreas Kling
parent d36e3af7be
commit de1b649783
2 changed files with 35 additions and 0 deletions

View file

@ -56,6 +56,9 @@ private:
bool validate_setup_resolution_with_io(size_t width, size_t height);
void set_y_offset(size_t);
void set_framebuffer_to_big_endian_format();
void set_framebuffer_to_little_endian_format();
PhysicalAddress m_mmio_registers;
Memory::TypedMapping<BochsDisplayMMIORegisters volatile> m_registers;
RefPtr<FramebufferDevice> m_framebuffer_device;