1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +00:00

WindowServer: Fallback to safe mode-setting in case of mapping overflow

In case of possible framebuffer mapping overflow, just fallback to the
safe mode-setting of the DisplayConnector, because in that state we know
for sure that we can map a usable framebuffer (otherwise it is a bug in
the Kernel, and not WindowServer).
This commit is contained in:
Liav A 2022-09-24 16:59:08 +03:00 committed by Linus Groh
parent d5b97eb41e
commit 13e9947b4b
6 changed files with 37 additions and 2 deletions

View file

@ -35,6 +35,7 @@ public:
virtual ErrorOr<void> flush_framebuffer() = 0;
virtual ErrorOr<void> set_head_mode_setting(GraphicsHeadModeSetting) = 0;
virtual ErrorOr<void> set_safe_head_mode_setting() = 0;
virtual ErrorOr<GraphicsHeadModeSetting> get_head_mode_setting() = 0;
bool m_can_device_flush_buffers { true };