mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
Kernel: Fix framebuffer resolution modesetting after boot
If we tried to change the resolution before of this patch, we triggered a kernel crash due to mmaping the framebuffer device again. Therefore, on mmaping of the framebuffer device, we create an entire new set of VMObjects and Regions for the new settings. Then, when we change the resolution, the framebuffersconsole needs to be updated with the new resolution and also to be refreshed with the new settings. To ensure we handle both shrinking of the resolution and growth of it, we only copy the right amount of available data from the cells Region.
This commit is contained in:
parent
5f718c6b05
commit
87f8f892d8
9 changed files with 88 additions and 13 deletions
|
@ -74,8 +74,8 @@ protected:
|
|||
Atomic<bool> m_enabled;
|
||||
Color m_default_foreground_color { Color::White };
|
||||
Color m_default_background_color { Color::Black };
|
||||
const size_t m_width;
|
||||
const size_t m_height;
|
||||
size_t m_width;
|
||||
size_t m_height;
|
||||
mutable size_t m_x { 0 };
|
||||
mutable size_t m_y { 0 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue