mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +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:
parent
d5b97eb41e
commit
13e9947b4b
6 changed files with 37 additions and 2 deletions
|
@ -31,6 +31,11 @@ void VirtualScreenBackend::set_head_buffer(int index)
|
|||
m_first_buffer_active = index == 0;
|
||||
}
|
||||
|
||||
ErrorOr<void> VirtualScreenBackend::set_safe_head_mode_setting()
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
ErrorOr<void> VirtualScreenBackend::set_head_mode_setting(GraphicsHeadModeSetting mode_setting)
|
||||
{
|
||||
m_height = mode_setting.vertical_active;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue