1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

Kernel+Userland: Provide bytes count for a DisplayConnector framebuffer

This value will be used later on by WindowServer to reject resolutions
that will request a mapping that will overflow the hardware framebuffer
max length.
This commit is contained in:
Liav A 2022-09-24 16:55:46 +03:00 committed by Linus Groh
parent 50ed50752f
commit d5b97eb41e
4 changed files with 5 additions and 0 deletions

View file

@ -33,6 +33,7 @@ ErrorOr<void> HardwareScreenBackend::open()
m_can_device_flush_buffers = (properties.partial_flushing_support != 0);
m_can_device_flush_entire_framebuffer = (properties.flushing_support != 0);
m_can_set_head_buffer = (properties.doublebuffer_support != 0);
m_max_size_in_bytes = properties.max_buffer_bytes;
return {};
}