mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
WindowServer: Implement mechanism to restore safe mode setting
Such mechanism will be used by the Intel Graphics driver, because we lack support of changing the resolution on this driver currently, so, when WindowServer will try to mode-set the display then it will fail, and will use the safe mode-setting call instead to be able to show something on screen.
This commit is contained in:
parent
d9a2706079
commit
6d7e2596e0
3 changed files with 15 additions and 3 deletions
|
@ -64,6 +64,11 @@ ALWAYS_INLINE int fb_set_head_mode_setting(int fd, FBHeadModeSetting* mode_setti
|
|||
return ioctl(fd, FB_IOCTL_SET_HEAD_MODE_SETTING, mode_setting);
|
||||
}
|
||||
|
||||
ALWAYS_INLINE int fb_set_safe_head_mode_setting(int fd)
|
||||
{
|
||||
return ioctl(fd, FB_IOCTL_SET_SAFE_HEAD_MODE_SETTING, nullptr);
|
||||
}
|
||||
|
||||
ALWAYS_INLINE int fb_get_head_mode_setting(int fd, FBHeadModeSetting* mode_setting)
|
||||
{
|
||||
FBHeadModeSetting head_mode_setting;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue